diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-07-01 14:57:51 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-01 14:57:51 -0700 |
commit | 660d579d6ff0ac29b8f7b38b3da73f09214d39aa (patch) | |
tree | fe45154c34455a2774275e5e70bee0556f55200c /quote.c | |
parent | 9a3c6f7ba7c567e277da58a45ac6fa50461297e3 (diff) | |
parent | 9378c16135100fb65ad575cd35074af166de1cab (diff) | |
download | git-660d579d6ff0ac29b8f7b38b3da73f09214d39aa.tar.gz git-660d579d6ff0ac29b8f7b38b3da73f09214d39aa.tar.xz |
Merge branch 'jc/quote'
* jc/quote:
Add core.quotepath configuration variable.
Diffstat (limited to 'quote.c')
-rw-r--r-- | quote.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -188,7 +188,8 @@ static int quote_c_style_counted(const char *name, int namelen, #define EMITQ() EMIT('\\') const char *sp; - int ch, count = 0, needquote = 0; + unsigned char ch; + int count = 0, needquote = 0; if (!no_dq) EMIT('"'); @@ -197,7 +198,7 @@ static int quote_c_style_counted(const char *name, int namelen, if (!ch) break; if ((ch < ' ') || (ch == '"') || (ch == '\\') || - (ch >= 0177)) { + (quote_path_fully && (ch >= 0177))) { needquote = 1; switch (ch) { case '\a': EMITQ(); ch = 'a'; break; |