]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/transactional-update-ref-stdin'
authorJunio C Hamano <gitster@pobox.com>
Wed, 29 Apr 2020 23:15:31 +0000 (16:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Apr 2020 23:15:31 +0000 (16:15 -0700)
"git update-ref --stdin" learned a handful of new verbs to let the
user control ref update transactions more explicitly, which helps
as an ingredient to implement two-phase commit-style atomic
ref-updates across multiple repositories.

* ps/transactional-update-ref-stdin:
  update-ref: implement interactive transaction handling
  update-ref: read commands in a line-wise fashion
  update-ref: move transaction handling into `update_refs_stdin()`
  update-ref: pass end pointer instead of strbuf
  update-ref: drop unused argument for `parse_refname`
  update-ref: organize commands in an array
  strbuf: provide function to append whole lines
  git-update-ref.txt: add missing word
  refs: fix segfault when aborting empty transaction


Trivial merge