mbox series

[0/2] fetch: implement support for atomic reference updates

Message ID cover.1610027375.git.ps@pks.im (mailing list archive)
Headers show
Series fetch: implement support for atomic reference updates | expand

Message

Patrick Steinhardt Jan. 7, 2021, 1:51 p.m. UTC
Hi,

this is a short patch series to implement support for atomic reference
updates for git-fetch(1). It's similar to `git push --atomic`, only that
it applies to the local side. That is the fetch will either succeed and
update all remote references or it will fail and update none.

Patrick

Patrick Steinhardt (2):
  fetch: allow passing a transaction to `s_update_ref()`
  fetch: implement support for atomic reference updates

 Documentation/fetch-options.txt |   4 +
 builtin/fetch.c                 |  72 ++++++++++++-----
 t/t5510-fetch.sh                | 139 ++++++++++++++++++++++++++++++++
 3 files changed, 197 insertions(+), 18 deletions(-)