summaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-04-23 22:46:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-24 02:24:40 (GMT)
commit5e3548ef161d4d284e35cf5f5d6a181ba4fe707b (patch)
treea1e5175546417ed701dbe109b683142b95111261 /fetch-pack.h
parentff473221b4d6cf0894ba47370492d853a36c024d (diff)
downloadgit-5e3548ef161d4d284e35cf5f5d6a181ba4fe707b.zip
git-5e3548ef161d4d284e35cf5f5d6a181ba4fe707b.tar.gz
git-5e3548ef161d4d284e35cf5f5d6a181ba4fe707b.tar.bz2
fetch: send server options when using protocol v2
Teach fetch to optionally accept server options by specifying them on the cmdline via '-o' or '--server-option'. These server options are sent to the remote end when performing a fetch communicating using protocol version 2. If communicating using a protocol other than v2 the provided options are ignored and not sent to the remote end. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.h')
-rw-r--r--fetch-pack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h
index 6afa08b..bb45a36 100644
--- a/fetch-pack.h
+++ b/fetch-pack.h
@@ -15,6 +15,7 @@ struct fetch_pack_args {
const char *deepen_since;
const struct string_list *deepen_not;
struct list_objects_filter_options filter_options;
+ const struct string_list *server_options;
unsigned deepen_relative:1;
unsigned quiet:1;
unsigned keep_pack:1;