Skip to content

Commit 605946b

Browse files
committed
Revert "trace2:data: add trace2 hook classification"
This reverts commit 9afaef2.
1 parent b9ef989 commit 605946b

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

builtin/am.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ static int run_post_rewrite_hook(const struct am_state *state)
468468

469469
cp.in = xopen(am_path(state, "rewritten"), O_RDONLY);
470470
cp.stdout_to_stderr = 1;
471-
cp.trace2_hook_name = "post-rewrite";
472471

473472
ret = run_command(&cp);
474473

builtin/receive-pack.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,6 @@ static int run_and_feed_hook(const char *hook_name, feed_fn feed,
694694
proc.argv = argv;
695695
proc.in = -1;
696696
proc.stdout_to_stderr = 1;
697-
proc.trace2_hook_name = hook_name;
698-
699697
if (feed_state->push_options) {
700698
int i;
701699
for (i = 0; i < feed_state->push_options->nr; i++)
@@ -809,7 +807,6 @@ static int run_update_hook(struct command *cmd)
809807
proc.stdout_to_stderr = 1;
810808
proc.err = use_sideband ? -1 : 0;
811809
proc.argv = argv;
812-
proc.trace2_hook_name = "update";
813810

814811
code = start_command(&proc);
815812
if (code)
@@ -1193,7 +1190,6 @@ static void run_update_post_hook(struct command *commands)
11931190
proc.no_stdin = 1;
11941191
proc.stdout_to_stderr = 1;
11951192
proc.err = use_sideband ? -1 : 0;
1196-
proc.trace2_hook_name = "post-update";
11971193

11981194
if (!start_command(&proc)) {
11991195
if (use_sideband)

builtin/worktree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ static int add_worktree(const char *path, const char *refname,
401401
cp.dir = path;
402402
cp.env = env;
403403
cp.argv = NULL;
404-
cp.trace2_hook_name = "post-checkout";
405404
argv_array_pushl(&cp.args, absolute_path(hook),
406405
oid_to_hex(&null_oid),
407406
oid_to_hex(&commit->object.oid),

sequencer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,6 @@ static int run_rewrite_hook(const struct object_id *oldoid,
10931093
proc.argv = argv;
10941094
proc.in = -1;
10951095
proc.stdout_to_stderr = 1;
1096-
proc.trace2_hook_name = "post-rewrite";
10971096

10981097
code = start_command(&proc);
10991098
if (code)
@@ -3731,7 +3730,6 @@ static int pick_commits(struct todo_list *todo_list, struct replay_opts *opts)
37313730
hook.in = open(rebase_path_rewritten_list(),
37323731
O_RDONLY);
37333732
hook.stdout_to_stderr = 1;
3734-
hook.trace2_hook_name = "post-rewrite";
37353733
argv_array_push(&hook.args, post_rewrite_hook);
37363734
argv_array_push(&hook.args, "rebase");
37373735
/* we don't care if this hook failed */

transport.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,6 @@ static int run_pre_push_hook(struct transport *transport,
10611061

10621062
proc.argv = argv;
10631063
proc.in = -1;
1064-
proc.trace2_hook_name = "pre-push";
10651064

10661065
if (start_command(&proc)) {
10671066
finish_command(&proc);

0 commit comments

Comments
 (0)