]> git.ipfire.org Git - thirdparty/git.git/commit
receive-pack: convert update hooks to new API
authorEmily Shaffer <emilyshaffer@google.com>
Fri, 26 Dec 2025 12:23:33 +0000 (14:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Dec 2025 05:02:07 +0000 (14:02 +0900)
commit0bbaf3653f54f49ac124c623906983839c38b354
tree753ee14cacd6d856cee9cd0fc532820b5ae15ef3
parent53254bfa1b4e91bab2c675d1a6b561026f7b573a
receive-pack: convert update hooks to new API

Use the new hook sideband API introduced in the previous commit.

The hook API avoids creating a custom struct child_process and other
internal hook plumbing (e.g. calling find_hook()) and prepares for
the specification of hooks via configs or running parallel hooks.

Execution is still sequential through the current hook.[ch] via the
run_process_parallel_opts.processes=1 arg.

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>
builtin/receive-pack.c