]>
Commit | Line | Data |
---|---|---|
2d4177c0 DB |
1 | #ifndef FETCH_PACK_H |
2 | #define FETCH_PACK_H | |
3 | ||
8bee93dd | 4 | #include "string-list.h" |
47a59185 | 5 | #include "run-command.h" |
8bee93dd | 6 | |
beea4152 NTND |
7 | struct sha1_array; |
8 | ||
9cba13ca | 9 | struct fetch_pack_args { |
2d4177c0 | 10 | const char *uploadpack; |
2d4177c0 | 11 | int unpacklimit; |
2d4177c0 | 12 | int depth; |
508ea882 | 13 | const char *deepen_since; |
f6486f07 NTND |
14 | unsigned quiet:1; |
15 | unsigned keep_pack:1; | |
16 | unsigned lock_pack:1; | |
17 | unsigned use_thin_pack:1; | |
18 | unsigned fetch_all:1; | |
19 | unsigned stdin_refs:1; | |
92251b1b | 20 | unsigned diag_url:1; |
f6486f07 NTND |
21 | unsigned verbose:1; |
22 | unsigned no_progress:1; | |
23 | unsigned include_tag:1; | |
24 | unsigned stateless_rpc:1; | |
25 | unsigned check_self_contained_and_connected:1; | |
26 | unsigned self_contained_and_connected:1; | |
beea4152 | 27 | unsigned cloning:1; |
48d25cae | 28 | unsigned update_shallow:1; |
79891cb9 | 29 | unsigned deepen:1; |
2d4177c0 DB |
30 | }; |
31 | ||
4ba15999 | 32 | /* |
f2db854d JH |
33 | * sought represents remote references that should be updated from. |
34 | * On return, the names that were found on the remote will have been | |
35 | * marked as such. | |
4ba15999 | 36 | */ |
fa740529 | 37 | struct ref *fetch_pack(struct fetch_pack_args *args, |
63c69453 MH |
38 | int fd[], struct child_process *conn, |
39 | const struct ref *ref, | |
40 | const char *dest, | |
f2db854d JH |
41 | struct ref **sought, |
42 | int nr_sought, | |
beea4152 | 43 | struct sha1_array *shallow, |
63c69453 | 44 | char **pack_lockfile); |
2d4177c0 DB |
45 | |
46 | #endif |