Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 1 | #ifndef FETCH_PACK_H |
| 2 | #define FETCH_PACK_H |
| 3 | |
Michael Haggerty | 8bee93d | 2012-09-09 08:19:40 +0200 | [diff] [blame] | 4 | #include "string-list.h" |
Junio C Hamano | 47a5918 | 2013-07-08 13:56:53 -0700 | [diff] [blame] | 5 | #include "run-command.h" |
Michael Haggerty | 8bee93d | 2012-09-09 08:19:40 +0200 | [diff] [blame] | 6 | |
Nguyễn Thái Ngọc Duy | beea415 | 2013-12-05 20:02:39 +0700 | [diff] [blame] | 7 | struct sha1_array; |
| 8 | |
Jonathan Nieder | 9cba13c | 2011-03-16 02:08:34 -0500 | [diff] [blame] | 9 | struct fetch_pack_args { |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 10 | const char *uploadpack; |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 11 | int unpacklimit; |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 12 | int depth; |
Nguyễn Thái Ngọc Duy | f6486f0 | 2013-12-05 20:02:38 +0700 | [diff] [blame] | 13 | unsigned quiet:1; |
| 14 | unsigned keep_pack:1; |
| 15 | unsigned lock_pack:1; |
| 16 | unsigned use_thin_pack:1; |
| 17 | unsigned fetch_all:1; |
| 18 | unsigned stdin_refs:1; |
Junio C Hamano | 92251b1 | 2014-01-17 12:21:14 -0800 | [diff] [blame] | 19 | unsigned diag_url:1; |
Nguyễn Thái Ngọc Duy | f6486f0 | 2013-12-05 20:02:38 +0700 | [diff] [blame] | 20 | unsigned verbose:1; |
| 21 | unsigned no_progress:1; |
| 22 | unsigned include_tag:1; |
| 23 | unsigned stateless_rpc:1; |
| 24 | unsigned check_self_contained_and_connected:1; |
| 25 | unsigned self_contained_and_connected:1; |
Nguyễn Thái Ngọc Duy | beea415 | 2013-12-05 20:02:39 +0700 | [diff] [blame] | 26 | unsigned cloning:1; |
Nguyễn Thái Ngọc Duy | 48d25ca | 2013-12-05 20:02:42 +0700 | [diff] [blame] | 27 | unsigned update_shallow:1; |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 28 | }; |
| 29 | |
Michael Haggerty | 4ba1599 | 2012-09-09 08:19:43 +0200 | [diff] [blame] | 30 | /* |
Junio C Hamano | f2db854 | 2013-01-29 14:02:15 -0800 | [diff] [blame] | 31 | * sought represents remote references that should be updated from. |
| 32 | * On return, the names that were found on the remote will have been |
| 33 | * marked as such. |
Michael Haggerty | 4ba1599 | 2012-09-09 08:19:43 +0200 | [diff] [blame] | 34 | */ |
Shawn O. Pearce | fa74052 | 2007-09-19 00:49:35 -0400 | [diff] [blame] | 35 | struct ref *fetch_pack(struct fetch_pack_args *args, |
Michael Haggerty | 63c6945 | 2012-09-09 08:19:39 +0200 | [diff] [blame] | 36 | int fd[], struct child_process *conn, |
| 37 | const struct ref *ref, |
| 38 | const char *dest, |
Junio C Hamano | f2db854 | 2013-01-29 14:02:15 -0800 | [diff] [blame] | 39 | struct ref **sought, |
| 40 | int nr_sought, |
Nguyễn Thái Ngọc Duy | beea415 | 2013-12-05 20:02:39 +0700 | [diff] [blame] | 41 | struct sha1_array *shallow, |
Michael Haggerty | 63c6945 | 2012-09-09 08:19:39 +0200 | [diff] [blame] | 42 | char **pack_lockfile); |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 43 | |
| 44 | #endif |