Skip to content

Commit e852871

Browse files
committed
trace2: remove unneeded calls to generate 'def_param' set
Now that "trace2_cmd_name()" implicitly calls "trace2_cmd_list_config()" and "trace2_cmd_list_env_vars()", we don't need to explicitly call them. Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 9507184 commit e852871

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

git.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,6 @@ static int handle_alias(int *argcp, const char ***argv)
373373
strvec_pushv(&child.args, (*argv) + 1);
374374

375375
trace2_cmd_alias(alias_command, child.args.v);
376-
trace2_cmd_list_config();
377-
trace2_cmd_list_env_vars();
378376
trace2_cmd_name("_run_shell_alias_");
379377

380378
ret = run_command(&child);
@@ -411,8 +409,6 @@ static int handle_alias(int *argcp, const char ***argv)
411409
COPY_ARRAY(new_argv + count, *argv + 1, *argcp);
412410

413411
trace2_cmd_alias(alias_command, new_argv);
414-
trace2_cmd_list_config();
415-
trace2_cmd_list_env_vars();
416412

417413
*argv = new_argv;
418414
*argcp += count - 1;
@@ -462,8 +458,6 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
462458

463459
trace_argv_printf(argv, "trace: built-in: git");
464460
trace2_cmd_name(p->cmd);
465-
trace2_cmd_list_config();
466-
trace2_cmd_list_env_vars();
467461

468462
validate_cache_entries(the_repository->index);
469463
status = p->fn(argc, argv, prefix);

0 commit comments

Comments
 (0)