rev-parse --parseopt: add the --stuck-long mode
[alt-git.git] / fetch-pack.h
blob461cbf39b2affa71e27dd1a95c24d6c65a938d62
1 #ifndef FETCH_PACK_H
2 #define FETCH_PACK_H
4 #include "string-list.h"
5 #include "run-command.h"
7 struct fetch_pack_args {
8 const char *uploadpack;
9 int unpacklimit;
10 int depth;
11 unsigned quiet:1,
12 keep_pack:1,
13 lock_pack:1,
14 use_thin_pack:1,
15 fetch_all:1,
16 stdin_refs:1,
17 verbose:1,
18 no_progress:1,
19 include_tag:1,
20 stateless_rpc:1,
21 check_self_contained_and_connected:1,
22 self_contained_and_connected:1;
26 * sought represents remote references that should be updated from.
27 * On return, the names that were found on the remote will have been
28 * marked as such.
30 struct ref *fetch_pack(struct fetch_pack_args *args,
31 int fd[], struct child_process *conn,
32 const struct ref *ref,
33 const char *dest,
34 struct ref **sought,
35 int nr_sought,
36 char **pack_lockfile);
38 #endif