]> Kevux Git Server - rit/commit
builtin/history: split out extended function to create commits
authorPatrick Steinhardt <ps@pks.im>
Mon, 2 Mar 2026 12:13:11 +0000 (13:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Mar 2026 23:09:37 +0000 (15:09 -0800)
commit98f839425db94eb8d4c1f773e923ba1cff622d66
treeb7c2ac1294b010da3c77ed05cf3c7f900d0e0cab
parenta021e4f92cbacdb028b3efa49f619b076e72c9a6
builtin/history: split out extended function to create commits

In the next commit we're about to introduce a new command that splits up
a commit into two. Most of the logic will be shared with rewording
commits, except that we also need to have control over the parents and
the old/new trees.

Extract a new function `commit_tree_with_edited_message_ext()` to
prepare for this commit.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/history.c