From c34d24b8a4d776a0046261b7fc6d0900ea94cc52 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 10 Sep 2020 10:01:53 -0700 Subject: 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 --- quote.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'quote.h') diff --git a/quote.h b/quote.h index fa09309cf6..837cb42a71 100644 --- a/quote.h +++ b/quote.h @@ -72,8 +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_relative(const char *in, const char *prefix, - struct strbuf *out); +char *quote_path(const char *in, const char *prefix, struct strbuf *out); /* quoting as a string literal for other languages */ void perl_quote_buf(struct strbuf *sb, const char *src); -- cgit v1.2.3