diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-08 10:33:20 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-08 10:33:20 -0800 |
| commit | 0cea3ad7186bbdc21864fbabfd19cdf3ae08d9cb (patch) | |
| tree | 78d0640d85537aff27695bc0ab88610cfbdc4014 /builtin/hook.c | |
| parent | Merge branch 'en/xdiff-cleanup-2' into seen (diff) | |
| parent | receive-pack: convert receive hooks to hook API (diff) | |
| download | git-0cea3ad7186bbdc21864fbabfd19cdf3ae08d9cb.tar.gz git-0cea3ad7186bbdc21864fbabfd19cdf3ae08d9cb.zip | |
Merge branch 'ar/run-command-hook' into seen
Use hook API to replace ad-hoc invocation of hook scripts with the
run_command() API.
Comments?
* 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
reference-transaction: use hook API instead of run-command
hook: allow overriding the ungroup option
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
Diffstat (limited to 'builtin/hook.c')
| -rw-r--r-- | builtin/hook.c | 6 |
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. */ |
