fetch-pack.c: move shallow update code out of fetch_pack()
[git/git.git] / fetch-pack.h
CommitLineData
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
9cba13ca 7struct fetch_pack_args {
2d4177c0 8 const char *uploadpack;
2d4177c0 9 int unpacklimit;
2d4177c0 10 int depth;
bbaf4584
SP
11 unsigned quiet:1,
12 keep_pack:1,
fa740529 13 lock_pack:1,
bbaf4584
SP
14 use_thin_pack:1,
15 fetch_all:1,
078b895f 16 stdin_refs:1,
bbaf4584 17 verbose:1,
348e390b 18 no_progress:1,
249b2004 19 include_tag:1,
c6807a40
NTND
20 stateless_rpc:1,
21 check_self_contained_and_connected:1,
22 self_contained_and_connected:1;
2d4177c0
DB
23};
24
4ba15999 25/*
f2db854d
JH
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.
4ba15999 29 */
fa740529 30struct ref *fetch_pack(struct fetch_pack_args *args,
63c69453
MH
31 int fd[], struct child_process *conn,
32 const struct ref *ref,
33 const char *dest,
f2db854d
JH
34 struct ref **sought,
35 int nr_sought,
63c69453 36 char **pack_lockfile);
2d4177c0
DB
37
38#endif