summaryrefslogtreecommitdiff
path: root/quote.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-09-10 17:01:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-10 17:49:17 (GMT)
commitc34d24b8a4d776a0046261b7fc6d0900ea94cc52 (patch)
tree9963aecebeb26ddc3d2912a7f345b640c3e19f23 /quote.c
parent3a238e539bcdfe3f9eb5010fd218640c1b499f7a (diff)
downloadgit-c34d24b8a4d776a0046261b7fc6d0900ea94cc52.zip
git-c34d24b8a4d776a0046261b7fc6d0900ea94cc52.tar.gz
git-c34d24b8a4d776a0046261b7fc6d0900ea94cc52.tar.bz2
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 'quote.c')
-rw-r--r--quote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/quote.c b/quote.c
index ced0245..7bb519c 100644
--- a/quote.c
+++ b/quote.c
@@ -352,8 +352,7 @@ void write_name_quoted_relative(const char *name, const char *prefix,
}
/* quote path as relative to the given prefix */
-char *quote_path_relative(const char *in, const char *prefix,
- struct strbuf *out)
+char *quote_path(const char *in, const char *prefix, struct strbuf *out)
{
struct strbuf sb = STRBUF_INIT;
const char *rel = relative_path(in, prefix, &sb);