]> git.ipfire.org Git - thirdparty/git.git/commit
replay: add helper to put entry into replayed_commits
authorToon Claes <toon@iotcl.com>
Tue, 28 Jul 2026 15:45:51 +0000 (17:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2026 18:27:41 +0000 (11:27 -0700)
commitdf94e2b767ddc1968d5cfff55b87d5aec923e8a7
tree0dcedb447deeb4adc807e104cb04c1a053b0cd43
parent13c7afec212fc97ce257d15601659314c6673d6c
replay: add helper to put entry into replayed_commits

The function replay_revisions() in replay.c is rather lengthy. Extract
the logic to put a commit entry into a `struct mapped_commits` into a
helper function put_mapped_commit().

While at it, rename mapped_commit() to get_mapped_commit() to pair with
this new function.

Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
replay.c