summaryrefslogtreecommitdiff
path: root/send-pack.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-03 15:10:24 -0700
committerJunio C Hamano <gitster@pobox.com>2016-08-03 15:10:24 -0700
commitcf27c7996e986395a05c0056684923195295fd14 (patch)
tree91c7d576445ca71e9eba9d11bfaddd353a326ab5 /send-pack.h
parent4067a45438282fe967779fcbc5c3513d2cbb5913 (diff)
parent3ac870300a7bb430341388a8f2ec465328986617 (diff)
downloadgit-cf27c7996e986395a05c0056684923195295fd14.tar.gz
Merge branch 'sb/push-options'
"git push" learned to accept and pass extra options to the receiving end so that hooks can read and react to them. * sb/push-options: add a test for push options push: accept push options receive-pack: implement advertising and receiving push options push options: {pre,post}-receive hook learns about push options
Diffstat (limited to 'send-pack.h')
-rw-r--r--send-pack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/send-pack.h b/send-pack.h
index 57f222abcc..67fc40f4ec 100644
--- a/send-pack.h
+++ b/send-pack.h
@@ -1,6 +1,8 @@
#ifndef SEND_PACK_H
#define SEND_PACK_H
+#include "string-list.h"
+
/* Possible values for push_cert field in send_pack_args. */
#define SEND_PACK_PUSH_CERT_NEVER 0
#define SEND_PACK_PUSH_CERT_IF_ASKED 1
@@ -21,6 +23,7 @@ struct send_pack_args {
push_cert:2,
stateless_rpc:1,
atomic:1;
+ const struct string_list *push_options;
};
struct option;