]> git.ipfire.org Git - thirdparty/git.git/commit
replay: extract logic to pick commits
authorPatrick Steinhardt <ps@pks.im>
Wed, 3 Dec 2025 10:48:29 +0000 (11:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Dec 2025 21:49:44 +0000 (13:49 -0800)
commit8a8f05366f960ab323ccffcde8da6dfef8897392
tree758bd70919b161bdb292e210bf259303cfd8d6ee
parent248896ed0210b49550712913c5549fc2e5a6671a
replay: extract logic to pick commits

We're about to add a new git-history(1) command that will reuse some of
the same infrastructure as git-replay(1). To prepare for this, extract
the logic to pick a commit into a new "replay.c" file so that it can be
shared between both commands.

Rename the function to have a "replay_" prefix to clearly indicate its
subsystem.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
builtin/replay.c
meson.build
replay.c [new file with mode: 0644]
replay.h [new file with mode: 0644]