diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-12-26 17:13:36 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-26 17:13:36 -0800 |
commit | d56250911f4ec074048f4edb34551eaf384172cc (patch) | |
tree | 8978a2314f00add8f84a9164ba69da2fb70c9aeb /quote.h | |
parent | 462a15bc82e6adbcb8db5fcc4791ec70a026aa4b (diff) | |
download | git-d56250911f4ec074048f4edb34551eaf384172cc.tar.gz |
Fix rewrite_diff() name quoting.
This moves the logic to quote two paths (prefix + path) in
C-style introduced in the previous commit from the
dump_quoted_path() in combine-diff.c to quote.c, and uses it to
fix rewrite_diff() that never C-quoted the pathnames correctly.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.h')
-rw-r--r-- | quote.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -41,6 +41,7 @@ extern char *sq_dequote(char *); extern int unquote_c_style(struct strbuf *, const char *quoted, const char **endp); extern size_t quote_c_style(const char *name, struct strbuf *, FILE *, int no_dq); +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, |