ls-tree: remove path filtering logic in show_tree
commit1cf9952db243c624cc2763fa74e98adbb38537b1
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 30 Nov 2014 09:05:01 +0000 (30 16:05 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Dec 2014 19:32:34 +0000 (1 11:32 -0800)
tree3e1f495925b0e6e8869a238ee7a567e32fa2b997
parent6a0b0b6de996e2ac7eeb951e3d08f577c11c7e54
ls-tree: remove path filtering logic in show_tree

ls-tree uses read_tree_recursive() which already does path filtering
using pathspec. No need to filter one more time based on prefix
only. "ls-tree ../somewhere" does not work because of
this. write_name_quotedpfx() can now be retired because nobody else
uses it.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-tree.c
quote.c
quote.h
t/t3102-ls-tree-wildcards.sh