diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-04-22 22:42:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-22 22:42:44 +0200 |
commit | 810dc6481ad7c1e1a6aacebfeaed308778c6c63f (patch) | |
tree | 6b4fc05249dba2e535d9fe89a6c130a43aee129a /git.c | |
parent | Merge branch 'jt/connectivity-check-optim-in-partial-clone' (diff) | |
parent | trace2: teach Git to log environment variables (diff) | |
download | git-810dc6481ad7c1e1a6aacebfeaed308778c6c63f.tar.xz git-810dc6481ad7c1e1a6aacebfeaed308778c6c63f.zip |
Merge branch 'js/trace2-env-vars'
Trace2 enhancement to allow logging of the environment variables.
* js/trace2-env-vars:
trace2: teach Git to log environment variables
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -351,6 +351,7 @@ static int handle_alias(int *argcp, const char ***argv) trace2_cmd_alias(alias_command, child.args.argv); trace2_cmd_list_config(); + trace2_cmd_list_env_vars(); trace2_cmd_name("_run_shell_alias_"); ret = run_command(&child); @@ -388,6 +389,7 @@ static int handle_alias(int *argcp, const char ***argv) trace2_cmd_alias(alias_command, new_argv); trace2_cmd_list_config(); + trace2_cmd_list_env_vars(); *argv = new_argv; *argcp += count - 1; @@ -439,6 +441,7 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv) trace_argv_printf(argv, "trace: built-in: git"); trace2_cmd_name(p->cmd); trace2_cmd_list_config(); + trace2_cmd_list_env_vars(); validate_cache_entries(the_repository->index); status = p->fn(argc, argv, prefix); |