]> 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>
Thu, 15 Jan 2026 21:10:30 +0000 (13:10 -0800)
commit4750485897b6681e0b6ca2caaadadaf660b4bb9c
tree535ca8a3141562d16a7a1eaaec7594e84eb96e91
parent31bc927a9b8067c3cb2f2dd0455e1b2e8f2402f4
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