4 #include "string-list.h"
5 #include "run-command.h"
9 struct fetch_pack_args {
10 const char *uploadpack;
13 const char *deepen_since;
14 const struct string_list *deepen_not;
15 unsigned deepen_relative:1;
19 unsigned use_thin_pack:1;
21 unsigned stdin_refs:1;
24 unsigned no_progress:1;
25 unsigned include_tag:1;
26 unsigned stateless_rpc:1;
27 unsigned check_self_contained_and_connected:1;
28 unsigned self_contained_and_connected:1;
30 unsigned update_shallow:1;
35 * sought represents remote references that should be updated from.
36 * On return, the names that were found on the remote will have been
39 struct ref *fetch_pack(struct fetch_pack_args *args,
40 int fd[], struct child_process *conn,
41 const struct ref *ref,
45 struct oid_array *shallow,
46 char **pack_lockfile);
49 * Print an appropriate error message for each sought ref that wasn't
50 * matched. Return 0 if all sought refs were matched, otherwise 1.
52 int report_unmatched_refs(struct ref **sought, int nr_sought);