summaryrefslogtreecommitdiff
path: root/quote.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-09-10 17:01:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-10 17:49:19 (GMT)
commit88910c9939cee927a3ed1acca8d33a30c90b8fe5 (patch)
tree173bd0a6c4615a8086717228dea35bba4370b7b1 /quote.c
parentc34d24b8a4d776a0046261b7fc6d0900ea94cc52 (diff)
downloadgit-88910c9939cee927a3ed1acca8d33a30c90b8fe5.zip
git-88910c9939cee927a3ed1acca8d33a30c90b8fe5.tar.gz
git-88910c9939cee927a3ed1acca8d33a30c90b8fe5.tar.bz2
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>
Diffstat (limited to 'quote.c')
-rw-r--r--quote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quote.c b/quote.c
index 7bb519c..a86f9f2 100644
--- a/quote.c
+++ b/quote.c
@@ -352,7 +352,7 @@ void write_name_quoted_relative(const char *name, const char *prefix,
}
/* quote path as relative to the given prefix */
-char *quote_path(const char *in, const char *prefix, struct strbuf *out)
+char *quote_path(const char *in, const char *prefix, struct strbuf *out, unsigned flags)
{
struct strbuf sb = STRBUF_INIT;
const char *rel = relative_path(in, prefix, &sb);