Code

[PATCH] ls-tree: handle trailing slashes in the pathspec properly.
authorJunio C Hamano <junkio@cox.net>
Wed, 1 Jun 2005 01:46:47 +0000 (18:46 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 1 Jun 2005 03:32:27 +0000 (20:32 -0700)
commit66204988fe2e5a2a18c4ff55798c7203775d9fd4
treeb44e2c7309c5a90d34b61eb2b19499aebce07f6d
parent8c7fa2478e16227c8f42d05758bf669b144c5055
[PATCH] ls-tree: handle trailing slashes in the pathspec properly.

This fixes the problem with ls-tree which failed to show
"drivers/char" directory when the user asked for "drivers/char/"
from the command line.  At the same time, if "drivers/char" were
a non directory, "drivers/char/" would not show it.  This is
consistent with the way diffcore-pathspec has been recently
fixed.

This adds back the diffcore-pathspec test,dropped when my
earlier diffcore-pathspec fix was rejected.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
ls-tree.c
t/t3100-ls-tree-restrict.sh
t/t4010-diff-pathspec.sh [new file with mode: 0644]