Skip to content

Commit

Permalink
Revert "trace2:data: add trace2 hook classification"
Browse files Browse the repository at this point in the history
This reverts commit 9afaef2.
  • Loading branch information
jeffhostetler committed Jan 31, 2019
1 parent b9ef989 commit 605946b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion builtin/am.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ static int run_post_rewrite_hook(const struct am_state *state)

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

ret = run_command(&cp);

Expand Down
4 changes: 0 additions & 4 deletions builtin/receive-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,6 @@ 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++)
Expand Down Expand Up @@ -809,7 +807,6 @@ 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)
Expand Down Expand Up @@ -1193,7 +1190,6 @@ 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)
Expand Down
1 change: 0 additions & 1 deletion builtin/worktree.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ static int add_worktree(const char *path, const char *refname,
cp.dir = path;
cp.env = env;
cp.argv = NULL;
cp.trace2_hook_name = "post-checkout";
argv_array_pushl(&cp.args, absolute_path(hook),
oid_to_hex(&null_oid),
oid_to_hex(&commit->object.oid),
Expand Down
2 changes: 0 additions & 2 deletions sequencer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,6 @@ 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)
Expand Down Expand Up @@ -3731,7 +3730,6 @@ static int pick_commits(struct todo_list *todo_list, struct replay_opts *opts)
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 */
Expand Down
1 change: 0 additions & 1 deletion transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,6 @@ static int run_pre_push_hook(struct transport *transport,

proc.argv = argv;
proc.in = -1;
proc.trace2_hook_name = "pre-push";

if (start_command(&proc)) {
finish_command(&proc);
Expand Down

0 comments on commit 605946b

Please sign in to comment.