X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=quote.h;h=38003bff5f97a11e051b106522a8548d43d24f6c;hb=9b73ce74e6abfb45626bce7a21465e6db6302be0;hp=f83eb233c4b153c4c073b3ccd5bf2f5dd926b739;hpb=a660534e06147f8867d6c9b6c41025427a7b5c6c;p=git.git diff --git a/quote.h b/quote.h index f83eb233c..38003bff5 100644 --- a/quote.h +++ b/quote.h @@ -54,9 +54,12 @@ extern void quote_two_c_style(struct strbuf *, const char *, const char *, int); extern void write_name_quoted(const char *name, FILE *, int terminator); extern void write_name_quotedpfx(const char *pfx, size_t pfxlen, const char *name, FILE *, int terminator); +extern void write_name_quoted_relative(const char *name, size_t len, + const char *prefix, size_t prefix_len, + FILE *fp, int terminator); /* quote path as relative to the given prefix */ -char *quote_path_relative(const char *in, int len, +extern char *quote_path_relative(const char *in, int len, struct strbuf *out, const char *prefix); /* quoting as a string literal for other languages */