summaryrefslogtreecommitdiff
path: root/quote.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-12-22 12:27:12 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-12-22 12:27:12 -0800
commit570077231f12e995bb9e8ebe3d6a295047bb993e (patch)
tree3a65c9316406bdff1d3af9efa675505490242263 /quote.c
parentMerge branch 'jc/hook-cleanup' (diff)
parentt3102: style modernization (diff)
downloadtgif-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.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/quote.c b/quote.c
index 45e3db12d5..7920e18e44 100644
--- a/quote.c
+++ b/quote.c
@@ -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)
{