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>
This commit is contained in:

committed by
Junio C Hamano

parent
abd81a3d79
commit
6206286e49
@ -694,6 +694,8 @@ static int run_and_feed_hook(const char *hook_name, feed_fn feed,
|
||||
proc.argv = argv;
|
||||
proc.in = -1;
|
||||
proc.stdout_to_stderr = 1;
|
||||
proc.trace2_hook_name = hook_name;
|
||||
|
||||
if (feed_state->push_options) {
|
||||
int i;
|
||||
for (i = 0; i < feed_state->push_options->nr; i++)
|
||||
@ -807,6 +809,7 @@ static int run_update_hook(struct command *cmd)
|
||||
proc.stdout_to_stderr = 1;
|
||||
proc.err = use_sideband ? -1 : 0;
|
||||
proc.argv = argv;
|
||||
proc.trace2_hook_name = "update";
|
||||
|
||||
code = start_command(&proc);
|
||||
if (code)
|
||||
@ -1190,6 +1193,7 @@ static void run_update_post_hook(struct command *commands)
|
||||
proc.no_stdin = 1;
|
||||
proc.stdout_to_stderr = 1;
|
||||
proc.err = use_sideband ? -1 : 0;
|
||||
proc.trace2_hook_name = "post-update";
|
||||
|
||||
if (!start_command(&proc)) {
|
||||
if (use_sideband)
|
||||
|
Reference in New Issue
Block a user