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" |
| 5 | |
Jonathan Nieder | 9cba13c | 2011-03-16 02:08:34 -0500 | [diff] [blame] | 6 | struct fetch_pack_args { |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 7 | const char *uploadpack; |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 8 | int unpacklimit; |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 9 | int depth; |
Shawn O. Pearce | bbaf458 | 2007-09-18 04:55:00 -0400 | [diff] [blame] | 10 | unsigned quiet:1, |
| 11 | keep_pack:1, |
Shawn O. Pearce | fa74052 | 2007-09-19 00:49:35 -0400 | [diff] [blame] | 12 | lock_pack:1, |
Shawn O. Pearce | bbaf458 | 2007-09-18 04:55:00 -0400 | [diff] [blame] | 13 | use_thin_pack:1, |
| 14 | fetch_all:1, |
Ivan Todoroski | 078b895 | 2012-04-02 17:13:48 +0200 | [diff] [blame] | 15 | stdin_refs:1, |
Shawn O. Pearce | bbaf458 | 2007-09-18 04:55:00 -0400 | [diff] [blame] | 16 | verbose:1, |
Shawn O. Pearce | 348e390 | 2008-03-03 22:27:33 -0500 | [diff] [blame] | 17 | no_progress:1, |
Shawn O. Pearce | 249b200 | 2009-10-30 17:47:42 -0700 | [diff] [blame] | 18 | include_tag:1, |
| 19 | stateless_rpc:1; |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 20 | }; |
| 21 | |
Michael Haggerty | 4ba1599 | 2012-09-09 08:19:43 +0200 | [diff] [blame] | 22 | /* |
| 23 | * sought contains the full names of remote references that should be |
| 24 | * updated from. On return, the names that were found on the remote |
| 25 | * will have been removed from the list. The util members of the |
| 26 | * string_list_items are used internally; they must be NULL on entry |
| 27 | * (and will be NULL on exit). |
| 28 | */ |
Shawn O. Pearce | fa74052 | 2007-09-19 00:49:35 -0400 | [diff] [blame] | 29 | struct ref *fetch_pack(struct fetch_pack_args *args, |
Michael Haggerty | 63c6945 | 2012-09-09 08:19:39 +0200 | [diff] [blame] | 30 | int fd[], struct child_process *conn, |
| 31 | const struct ref *ref, |
| 32 | const char *dest, |
Michael Haggerty | 8bee93d | 2012-09-09 08:19:40 +0200 | [diff] [blame] | 33 | struct string_list *sought, |
Michael Haggerty | 63c6945 | 2012-09-09 08:19:39 +0200 | [diff] [blame] | 34 | char **pack_lockfile); |
Daniel Barkalow | 2d4177c | 2007-09-10 23:03:00 -0400 | [diff] [blame] | 35 | |
| 36 | #endif |