diff options
author | idriss fekir <mcsm224@gmail.com> | 2023-02-19 01:25:27 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-21 21:06:32 +0100 |
commit | 17ab64e1b57b84d551a10e516d2722367e00e76c (patch) | |
tree | 5bf2e4b450306be5712d9f07fcf39fc24f7fcadf /trace.h | |
parent | The sixteenth batch (diff) | |
download | git-17ab64e1b57b84d551a10e516d2722367e00e76c.tar.xz git-17ab64e1b57b84d551a10e516d2722367e00e76c.zip |
trace.c, git.c: remove unnecessary parameter to trace_repo_setup()
trace_repo_setup() of trace.c is called with the argument 'prefix' from
only one location, run_builtin of git.c, which sets 'prefix' to the return
value of setup_git_directory() or setup_git_directory_gently() (a wrapper
of the former).
Now that "prefix" is in startup_info there is no need for the parameter
of trace_repo_setup() because setup_git_directory() sets "startup_info->prefix"
to the same value it returns. It would be less confusing to use "prefix"
from startup_info instead of passing it as an argument.
Signed-off-by: Idriss Fekir <mcsm224@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace.h')
-rw-r--r-- | trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -93,7 +93,7 @@ extern struct trace_key trace_default_key; extern struct trace_key trace_perf_key; extern struct trace_key trace_setup_key; -void trace_repo_setup(const char *prefix); +void trace_repo_setup(void); /** * Checks whether the trace key is enabled. Used to prevent expensive |