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 /commit.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 'commit.c')
| -rw-r--r-- | commit.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1965,6 +1965,9 @@ int run_commit_hook(int editor_is_used, const char *index_file, strvec_push(&opt.args, arg); va_end(args); + /* All commit hook use-cases require ungrouping child output. */ + opt.ungroup = 1; + opt.invoked_hook = invoked_hook; return run_hooks_opt(the_repository, name, &opt); } |
