summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2019-02-22 22:25:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-02-22 23:28:21 (GMT)
commit6206286e49b88bd4bb709c62e7b7455685c1993a (patch)
treee127ef78c19956cd4ac159219b9a7b4c8310b46e /sequencer.c
parentabd81a3d79d6c054f149ba0cd4d337b0a2d68027 (diff)
downloadgit-6206286e49b88bd4bb709c62e7b7455685c1993a.zip
git-6206286e49b88bd4bb709c62e7b7455685c1993a.tar.gz
git-6206286e49b88bd4bb709c62e7b7455685c1993a.tar.bz2
trace2:data: add trace2 hook classification
Classify certain child processes as hooks. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sequencer.c b/sequencer.c
index 0db410d..1625f48 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -1103,6 +1103,7 @@ static int run_rewrite_hook(const struct object_id *oldoid,
proc.argv = argv;
proc.in = -1;
proc.stdout_to_stderr = 1;
+ proc.trace2_hook_name = "post-rewrite";
code = start_command(&proc);
if (code)
@@ -3786,6 +3787,7 @@ cleanup_head_ref:
hook.in = open(rebase_path_rewritten_list(),
O_RDONLY);
hook.stdout_to_stderr = 1;
+ hook.trace2_hook_name = "post-rewrite";
argv_array_push(&hook.args, post_rewrite_hook);
argv_array_push(&hook.args, "rebase");
/* we don't care if this hook failed */