author | Junio C Hamano <junkio@cox.net> | |
Wed, 1 Jun 2005 01:46:47 +0000 (18:46 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 1 Jun 2005 03:32:27 +0000 (20:32 -0700) | ||
commit | 66204988fe2e5a2a18c4ff55798c7203775d9fd4 | |
tree | b44e2c7309c5a90d34b61eb2b19499aebce07f6d | tree | snapshot |
parent | 8c7fa2478e16227c8f42d05758bf669b144c5055 | commit | diff |
[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>
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 | diff | blob | history | |
t/t3100-ls-tree-restrict.sh | diff | blob | history | |
t/t4010-diff-pathspec.sh | [new file with mode: 0644] | blob |