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