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

- From: Patrick Steinhardt \<hidden\>
- Date: 2021-01-07 13:52:53 
- List: git
- Page: https://ratatoskr.run/git/2021/01/7871300
- Thread: https://ratatoskr.run/git/2021/01/7871300/t.md

```text
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(-)

-- 
2.30.0

```

## Attachments

- [signature.asc](https://ratatoskr.run/git/2021/01/7871300/attachment/0) (application/pgp-signature, 833 bytes)
