diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-12-22 12:27:12 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-22 12:27:12 -0800 |
commit | 570077231f12e995bb9e8ebe3d6a295047bb993e (patch) | |
tree | 3a65c9316406bdff1d3af9efa675505490242263 /quote.c | |
parent | Merge branch 'jc/hook-cleanup' (diff) | |
parent | t3102: style modernization (diff) | |
download | tgif-570077231f12e995bb9e8ebe3d6a295047bb993e.tar.xz |
Merge branch 'nd/ls-tree-pathspec'
"git ls-tree" does not support path selection based on negative
pathspecs, but did not error out when negative pathspecs are given.
* nd/ls-tree-pathspec:
t3102: style modernization
t3102: document that ls-tree does not yet support negated pathspec
ls-tree: disable negative pathspec because it's not supported
ls-tree: remove path filtering logic in show_tree
tree.c: update read_tree_recursive callback to pass strbuf as base
Diffstat (limited to 'quote.c')
-rw-r--r-- | quote.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -274,27 +274,6 @@ void write_name_quoted(const char *name, FILE *fp, int terminator) fputc(terminator, fp); } -void write_name_quotedpfx(const char *pfx, size_t pfxlen, - const char *name, FILE *fp, int terminator) -{ - int needquote = 0; - - if (terminator) { - needquote = next_quote_pos(pfx, pfxlen) < pfxlen - || name[next_quote_pos(name, -1)]; - } - if (needquote) { - fputc('"', fp); - quote_c_style_counted(pfx, pfxlen, NULL, fp, 1); - quote_c_style(name, NULL, fp, 1); - fputc('"', fp); - } else { - fwrite(pfx, pfxlen, 1, fp); - fputs(name, fp); - } - fputc(terminator, fp); -} - void write_name_quoted_relative(const char *name, const char *prefix, FILE *fp, int terminator) { |