Code

[PATCH] allow pathspec to end with a slash
authorJunio C Hamano <junkio@cox.net>
Fri, 27 May 2005 00:52:43 +0000 (17:52 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 27 May 2005 01:50:38 +0000 (18:50 -0700)
commita9c9cef161b26ca610783dd0b180d18956c7b119
tree1348af9952a1d26b2ad14ec8f433322fd79510f3
parentfbe082a528861af785be15bb37d1c7d8f574daa4
[PATCH] allow pathspec to end with a slash

The recent rewrite broke "git-whatchanged -v -p drivers/usb/" but
"git-whatchanged -v -p drivers/usb" still works.  Just strip out the
trailing slashes internally to make it work again.

It uses compare-thing-with-number comparison order instead of visual
comparison order ;-).

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diffcore-pathspec.c