[PATCH 0/5] Add a flag to push atomically
- From
Stefan Beller <sbeller@google.com>
- Date
- Dec 15, 2014, 19:56 UTC
- Message-ID
- <1418673368-20785-1-git-send-email-sbeller@google.com>
This patch series adds a flag to git push to update the remote refs atomically.
It was part of a longer patch series[1]. This series applies on top of origin/mh/reflog-expire It can also be found at [2].
Change since picking the series up from Ronnie. * other anchor point (i.e. where the series applies) * more tests for this feature, specially testing failures * drop the patch to rename ref_transaction_* to transaction_*_ref * slight rewording of the additional documentation
[1] http://www.spinics.net/lists/git/msg241214.html [2] https://github.com/stefanbeller/git/tree/atomic-push-v1
Ronnie Sahlberg (4):
receive-pack.c: add protocol support to negotiate atomic-push
send-pack.c: add an --atomic-push command line argument
receive-pack.c: use a single transaction when atomic-push is
negotiated
push.c: add an --atomic-push argumentStefan Beller (1): t5543-atomic-push.sh: add basic tests for atomic pushes
Documentation/git-push.txt | 8 +- Documentation/git-send-pack.txt | 7 +- Documentation/technical/protocol-capabilities.txt | 12 +- builtin/push.c | 2 + builtin/receive-pack.c | 79 +++++++-- builtin/send-pack.c | 6 +- remote.h | 3 +- send-pack.c | 45 +++++- send-pack.h | 1 + t/t5543-atomic-push.sh | 185 ++++++++++++++++++++++ transport.c | 5 + transport.h | 1 + 12 files changed, 327 insertions(+), 27 deletions(-) create mode 100755 t/t5543-atomic-push.sh
-- 2.2.0.33.gc2219e3.dirty