aboutsummaryrefslogtreecommitdiff
path: root/hook.c
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2025-12-26 14:23:32 +0200
committerJunio C Hamano <gitster@pobox.com>2025-12-28 14:02:07 +0900
commit53254bfa1b4e91bab2c675d1a6b561026f7b573a (patch)
tree69f7abf17ac4a80a6b764232b79346b17591c299 /hook.c
parent5ab5872a53296b009cca43d412efd1a74ea4f149 (diff)
downloadgit-53254bfa1b4e91bab2c675d1a6b561026f7b573a.tar.xz
hooks: allow callers to capture output
Some server-side hooks will require capturing output to send over sideband instead of printing directly to stderr. Expose that capability. Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hook.c b/hook.c
index 00a1e2ad22..35211e5ed7 100644
--- a/hook.c
+++ b/hook.c
@@ -158,6 +158,7 @@ int run_hooks_opt(struct repository *r, const char *hook_name,
.get_next_task = pick_next_hook,
.start_failure = notify_start_failure,
.feed_pipe = options->feed_pipe,
+ .consume_output = options->consume_output,
.task_finished = notify_hook_finished,
.data = &cb_data,