summaryrefslogtreecommitdiff
path: root/transport.c
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.c
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.c')
-rw-r--r--transport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/transport.c b/transport.c
index c67feeeb26..1373152a93 100644
--- a/transport.c
+++ b/transport.c
@@ -830,6 +830,7 @@ static int git_transport_push(struct transport *transport, struct ref *remote_re
args.dry_run = !!(flags & TRANSPORT_PUSH_DRY_RUN);
args.porcelain = !!(flags & TRANSPORT_PUSH_PORCELAIN);
args.push_cert = !!(flags & TRANSPORT_PUSH_CERT);
+ args.atomic = !!(flags & TRANSPORT_PUSH_ATOMIC);
args.url = transport->url;
ret = send_pack(&args, data->fd, data->conn, remote_refs,