match_tree_entry(): a pathspec only matches at directory boundaries
authorJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2009 02:34:03 +0000 (19:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2009 02:35:31 +0000 (19:35 -0700)
commit8092bfb6c23776d72ce4b38a3b517c3753c3b9fe
tree1bb24e2b99a36d5b58aedb9805e663c5d11b1569
parentf0946cb826b9b6c01976860fdd9dfd498ce0ec5e
match_tree_entry(): a pathspec only matches at directory boundaries

Previously the code did a simple prefix match, which means that a path in
a directory "frotz/" would have matched with pathspec "f".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3101-ls-tree-dirname.sh
tree.c