]> git.99rst.org Git - git.git/commit
builtin/history: split handling of ref updates into two phases
authorPatrick Steinhardt <redacted>
Wed, 1 Jul 2026 11:35:37 +0000 (13:35 +0200)
committerJunio C Hamano <redacted>
Fri, 3 Jul 2026 17:32:47 +0000 (10:32 -0700)
commit46affdb8c74759697e9afef2a55854d3641953e1
tree0e4d6b366683235dc3de5aa3958efc2b67634c6d
parent27717e2069fb524dab27ff2335aa4e69f35786a4
builtin/history: split handling of ref updates into two phases

The function `handle_reference_updates()` is used by git-history(1) to
update all references that refer to commits that have been rewritten. As
such, it performs two steps:

  - It gathers the references that need to be updated in the first
    place.

  - It prepares and commits the reference transaction.

In a subsequent commit we'll want to handle those two steps separately.
Prepare for this by splitting up the function into two.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/history.c
git clone https://git.99rst.org/PROJECT