quote_path: give flags parameter to quote_path()
The quote_path() function computes a path (relative to its base directory) and c-quotes the result if necessary. Teach it to take a flags parameter to allow its behaviour to be enriched later. No behaviour change intended. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -319,7 +319,7 @@ static void grep_source_name(struct grep_opt *opt, const char *filename,
|
||||
}
|
||||
|
||||
if (opt->relative && opt->prefix_length)
|
||||
quote_path(filename + tree_name_len, opt->prefix, out);
|
||||
quote_path(filename + tree_name_len, opt->prefix, out, 0);
|
||||
else
|
||||
quote_c_style(filename + tree_name_len, out, NULL, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user