mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
sq_quote_argv: drop maxlen parameter
No caller passes anything but "0" for this parameter, which
requests that the function ignore it completely. In fact, in
all of history there was only one such caller, and it went
away in 7f51f8bc2b (alias: use run_command api to execute
aliases, 2011-01-07).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
6366dd9000
commit
e35f11c293
4
trace.c
4
trace.c
@@ -157,7 +157,7 @@ static void trace_argv_vprintf_fl(const char *file, int line,
|
||||
|
||||
strbuf_vaddf(&buf, format, ap);
|
||||
|
||||
sq_quote_argv(&buf, argv, 0);
|
||||
sq_quote_argv(&buf, argv);
|
||||
print_trace_line(&trace_default_key, &buf);
|
||||
}
|
||||
|
||||
@@ -426,6 +426,6 @@ void trace_command_performance(const char **argv)
|
||||
atexit(print_command_performance_atexit);
|
||||
|
||||
strbuf_reset(&command_line);
|
||||
sq_quote_argv(&command_line, argv, 0);
|
||||
sq_quote_argv(&command_line, argv);
|
||||
command_start_time = getnanotime();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user