]> git.ipfire.org Git - thirdparty/git.git/commit
fast-import: refactor finalize_commit_buffer()
authorChristian Couder <christian.couder@gmail.com>
Mon, 17 Nov 2025 04:34:48 +0000 (05:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Nov 2025 04:56:35 +0000 (20:56 -0800)
commit388517c14ce62e1c52b091af862bbaf28dbabb7a
tree0ddaccca31309e26d4040cadb088f01d2ad1f55d
parent4cf919bd7b946477798af5414a371b23fd68bf93
fast-import: refactor finalize_commit_buffer()

In a following commit we are going to finalize commit buffers with or
without signatures in order to check the signatures and possibly drop
them.

To do so easily and without duplication, let's refactor the current
code that finalizes commit buffers into a new finalize_commit_buffer()
function.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-import.c