forked from git-for-windows/git
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trace2: move 'def_param' events into 'cmd_name' and 'cmd_alias'
Some Git commands do not emit `def_param` events for interesting config and environment variable settings. Let's fix that. Builtin commands compiled into `git.c` have the normal control flow and emit a `cmd_name` event and then `def_param` events for each interesting config and environment variable. However, some special "query" commands, like `--exec-path`, or some forms of alias expansion, emitted a `cmd_name` but did not emit `def_param` events. Also, special commands `git-remote-https` is built from `remote-curl.c` and `git-http-fetch` is built from `http-fetch.c` and do not use the normal set up in `git.c`. These emitted a `cmd_name` but not `def_param` events. To minimize the footprint of this commit, move the calls to `trace2_cmd_list_config()` and `trace2_cmd_list_env_vars()` into `trace2_cmd_name()` and `trace2_cmd_alias()` so that we always get a set `def_param` events when a `cmd_name` or `cmd_alias` event is generated. Signed-off-by: Jeff Hostetler <[email protected]>
- Loading branch information
1 parent
0f9d4d2
commit 8967b38
Showing
3 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters