summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-07-14 21:49:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-14 22:50:41 (GMT)
commitf6a4e61fbb647928d615a0befaec163a5d2bf4af (patch)
treee7a2625a11ec28300e33e3ceeae7ddaca3665944 /transport.h
parentc714e45f87301562b940e3621431ed7f7fbd16e5 (diff)
downloadgit-f6a4e61fbb647928d615a0befaec163a5d2bf4af.zip
git-f6a4e61fbb647928d615a0befaec163a5d2bf4af.tar.gz
git-f6a4e61fbb647928d615a0befaec163a5d2bf4af.tar.bz2
push: accept push options
This implements everything that is required on the client side to make use of push options from the porcelain push command. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.h')
-rw-r--r--transport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/transport.h b/transport.h
index c681408..6fe3485 100644
--- a/transport.h
+++ b/transport.h
@@ -48,6 +48,12 @@ struct transport {
*/
unsigned cloning : 1;
+ /*
+ * These strings will be passed to the {pre, post}-receive hook,
+ * on the remote side, if both sides support the push options capability.
+ */
+ const struct string_list *push_options;
+
/**
* Returns 0 if successful, positive if the option is not
* recognized or is inapplicable, and negative if the option
@@ -134,6 +140,7 @@ struct transport {
#define TRANSPORT_PUSH_CERT_ALWAYS 2048
#define TRANSPORT_PUSH_CERT_IF_ASKED 4096
#define TRANSPORT_PUSH_ATOMIC 8192
+#define TRANSPORT_PUSH_OPTIONS 16384
#define TRANSPORT_SUMMARY_WIDTH (2 * DEFAULT_ABBREV + 3)
#define TRANSPORT_SUMMARY(x) (int)(TRANSPORT_SUMMARY_WIDTH + strlen(x) - gettext_width(x)), (x)