author | Junio C Hamano <junkio@cox.net> | |
Fri, 27 May 2005 00:52:43 +0000 (17:52 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Fri, 27 May 2005 01:50:38 +0000 (18:50 -0700) | ||
commit | a9c9cef161b26ca610783dd0b180d18956c7b119 | |
tree | 1348af9952a1d26b2ad14ec8f433322fd79510f3 | tree | snapshot |
parent | fbe082a528861af785be15bb37d1c7d8f574daa4 | commit | diff |
[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>
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 | diff | blob | history |