Merge branch 'ps/fetch-atomic'
authorJunio C Hamano <gitster@pobox.com>
Mon, 25 Jan 2021 22:19:19 +0000 (14:19 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jan 2021 22:19:19 +0000 (14:19 -0800)
commit60ecad090dab8b1c0bd436252a47c8148212bcc1
tree96b11ddfede28ab6cbad736a268b4f3d359ec514
parentb69bed22c59fa08848bd7ffa5fbfacc0b62fcd48
parentc7b190dabdea16d5b1c29ae50430449a8547818f
Merge branch 'ps/fetch-atomic'

"git fetch" learns to treat ref updates atomically in all-or-none
fashion, just like "git push" does, with the new "--atomic" option.

* ps/fetch-atomic:
  fetch: implement support for atomic reference updates
  fetch: allow passing a transaction to `s_update_ref()`
  fetch: refactor `s_update_ref` to use common exit path
  fetch: use strbuf to format FETCH_HEAD updates
  fetch: extract writing to FETCH_HEAD
t/t5510-fetch.sh