summaryrefslogtreecommitdiff
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-09-10 10:01:53 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-09-10 10:49:17 -0700
commitc34d24b8a4d776a0046261b7fc6d0900ea94cc52 (patch)
tree9963aecebeb26ddc3d2912a7f345b640c3e19f23 /builtin/grep.c
parentThirteenth batch (diff)
downloadtgif-c34d24b8a4d776a0046261b7fc6d0900ea94cc52.tar.xz
quote_path: rename quote_path_relative() to quote_path()
There is no quote_path_absolute() or anything that causes confusion, and one of the two large consumers already rename the long name locally with a preprocessor macro. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/grep.c')
-rw-r--r--builtin/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index f58979bc3f..9a91ad643a 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -319,7 +319,7 @@ static void grep_source_name(struct grep_opt *opt, const char *filename,
}
if (opt->relative && opt->prefix_length)
- quote_path_relative(filename + tree_name_len, opt->prefix, out);
+ quote_path(filename + tree_name_len, opt->prefix, out);
else
quote_c_style(filename + tree_name_len, out, NULL, 0);