mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
3
quote.h
3
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);
|
||||
|
||||
Reference in New Issue
Block a user