aboutsummaryrefslogtreecommitdiff
path: root/builtin/hook.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-01-06 16:33:53 +0900
committerJunio C Hamano <gitster@pobox.com>2026-01-06 16:33:53 +0900
commitf406b8955295d01089ba2baf35eceadff2d11cae (patch)
tree7b53772788307329d2c0e4005b13f2a5621f529e /builtin/hook.c
parent1627809eeff75e6ec936fc609e7be46d5eb2fa9e (diff)
parentc65f26fca46f742e8e457d859a83c4e6ef3c3953 (diff)
downloadgit-f406b8955295d01089ba2baf35eceadff2d11cae.tar.xz
Merge branch 'ar/run-command-hook'
Use hook API to replace ad-hoc invocation of hook scripts with the run_command() API. * ar/run-command-hook: receive-pack: convert receive hooks to hook API receive-pack: convert update hooks to new API hooks: allow callers to capture output run-command: allow capturing of collated output hook: allow overriding the ungroup option reference-transaction: use hook API instead of run-command transport: convert pre-push to hook API hook: convert 'post-rewrite' hook in sequencer.c to hook API hook: provide stdin via callback run-command: add stdin callback for parallelization run-command: add first helper for pp child states
Diffstat (limited to 'builtin/hook.c')
-rw-r--r--builtin/hook.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/hook.c b/builtin/hook.c
index 7afec380d2..73e7b8c2e8 100644
--- a/builtin/hook.c
+++ b/builtin/hook.c
@@ -44,6 +44,12 @@ static int run(int argc, const char **argv, const char *prefix,
goto usage;
/*
+ * All current "hook run" use-cases require ungrouped child output.
+ * If this changes, a hook run argument can be added to toggle it.
+ */
+ opt.ungroup = 1;
+
+ /*
* Having a -- for "run" when providing <hook-args> is
* mandatory.
*/