summaryrefslogtreecommitdiff
path: root/quote.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-09-10 10:01:54 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-09-10 10:49:19 -0700
commit88910c9939cee927a3ed1acca8d33a30c90b8fe5 (patch)
tree173bd0a6c4615a8086717228dea35bba4370b7b1 /quote.h
parentquote_path: rename quote_path_relative() to quote_path() (diff)
downloadtgif-88910c9939cee927a3ed1acca8d33a30c90b8fe5.tar.xz
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.h')
-rw-r--r--quote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quote.h b/quote.h
index 837cb42a71..4687b5daf4 100644
--- a/quote.h
+++ b/quote.h
@@ -72,7 +72,7 @@ void write_name_quoted_relative(const char *name, const char *prefix,
FILE *fp, int terminator);
/* 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);
/* quoting as a string literal for other languages */
void perl_quote_buf(struct strbuf *sb, const char *src);