summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@google.com>2015-01-07 19:23:23 -0800
committerJunio C Hamano <gitster@pobox.com>2015-01-07 19:56:44 -0800
commitd0e8e09cd8828b278a56d4ebfc52d662ff8038d8 (patch)
tree4e0a64281575a14d7c46184d061a32d2ed28105d /transport.h
parent4ff17f10c4297ab3d9948d4216016ca367e737e3 (diff)
downloadgit-d0e8e09cd8828b278a56d4ebfc52d662ff8038d8.tar.gz
push.c: add an --atomic argument
Add a command line argument to the git push command to request atomic pushes. Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/transport.h b/transport.h
index 3e0091eaab..18d2cf8275 100644
--- a/transport.h
+++ b/transport.h
@@ -125,6 +125,7 @@ struct transport {
#define TRANSPORT_PUSH_NO_HOOK 512
#define TRANSPORT_PUSH_FOLLOW_TAGS 1024
#define TRANSPORT_PUSH_CERT 2048
+#define TRANSPORT_PUSH_ATOMIC 4096
#define TRANSPORT_SUMMARY_WIDTH (2 * DEFAULT_ABBREV + 3)
#define TRANSPORT_SUMMARY(x) (int)(TRANSPORT_SUMMARY_WIDTH + strlen(x) - gettext_width(x)), (x)