]> git.ipfire.org Git - thirdparty/git.git/commit
replay: introduce pick_regular_commit()
authorElijah Newren <newren@gmail.com>
Fri, 24 Nov 2023 11:10:34 +0000 (12:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Nov 2023 01:10:48 +0000 (10:10 +0900)
commite787e664da640d1d4b15c6dc67a704dfa56592f9
tree4daee4c89a6eca1c3641520776243f9ac2f5120d
parenta9df61ace31b84c9609dfa4875e93b8c92e06e56
replay: introduce pick_regular_commit()

Let's refactor the code to handle a regular commit (a commit that is
neither a root commit nor a merge commit) into a single function instead
of keeping it inside cmd_replay().

This is good for separation of concerns, and this will help further work
in the future to replay merge commits.

Co-authored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replay.c