]> git.ipfire.org Git - thirdparty/git.git/commit
hook: convert 'post-rewrite' hook in sequencer.c to hook API
authorEmily Shaffer <emilyshaffer@google.com>
Fri, 26 Dec 2025 12:23:27 +0000 (14:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Dec 2025 05:02:06 +0000 (14:02 +0900)
commit05eccff8c7e6c58bad777a642ab8a28c87602d36
tree1881e9c8343efbeffc3e8480b270b1d1fc473ac7
parent26238496a70f084912924d2c3af828c24bceb4aa
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