fetch-pack.h 1.02 KB
Newer Older
1 2 3
#ifndef FETCH_PACK_H
#define FETCH_PACK_H

4
#include "string-list.h"
5
#include "run-command.h"
6

7 8
struct sha1_array;

9
struct fetch_pack_args {
10 11 12
	const char *uploadpack;
	int unpacklimit;
	int depth;
13 14 15 16 17 18
	unsigned quiet:1;
	unsigned keep_pack:1;
	unsigned lock_pack:1;
	unsigned use_thin_pack:1;
	unsigned fetch_all:1;
	unsigned stdin_refs:1;
19
	unsigned diag_url:1;
20 21 22 23 24 25
	unsigned verbose:1;
	unsigned no_progress:1;
	unsigned include_tag:1;
	unsigned stateless_rpc:1;
	unsigned check_self_contained_and_connected:1;
	unsigned self_contained_and_connected:1;
26
	unsigned cloning:1;
27
	unsigned update_shallow:1;
28 29
};

30
/*
31 32 33
 * sought represents remote references that should be updated from.
 * On return, the names that were found on the remote will have been
 * marked as such.
34
 */
35
struct ref *fetch_pack(struct fetch_pack_args *args,
36 37 38
		       int fd[], struct child_process *conn,
		       const struct ref *ref,
		       const char *dest,
39 40
		       struct ref **sought,
		       int nr_sought,
41
		       struct sha1_array *shallow,
42
		       char **pack_lockfile);
43 44

#endif