]> git.ipfire.org Git - thirdparty/git.git/commit
hook: convert 'post-rewrite' hook in sequencer.c to hook API
authorEmily Shaffer <emilyshaffer@google.com>
Wed, 28 Jan 2026 21:39:20 +0000 (23:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Jan 2026 23:47:03 +0000 (15:47 -0800)
commite8ee80cfb692139d0ca305995effe253b7a00463
tree1340ea931694d718862431b09a7e57614f470296
parent33e5914863ab232164571c2e259cfa1e9c3f30dd
hook: convert 'post-rewrite' hook in sequencer.c to hook API

Replace the custom run-command calls used by post-rewrite with
the newer and simpler hook_run_opt(), which does not need to
create a custom 'struct child_process' or call find_hook().

Another benefit of using the hook API is that hook_run_opt()
handles the SIGPIPE toggle logic.

Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c