author | Linus Torvalds <torvalds@osdl.org> | |
Wed, 17 Aug 2005 03:44:32 +0000 (20:44 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 17 Aug 2005 04:33:25 +0000 (21:33 -0700) | ||
commit | f332726eaad74ac2aac0c3fb2dcb662acdbc3a31 | |
tree | b286ced3860a853e4ebcea7f7e2b10b2571215bd | tree | snapshot |
parent | a579defe5a43bdd242d79750039758f319b82a38 | commit | diff |
[PATCH] Improve handling of "." and ".." in git-diff-*
This fixes up usage of ".." (without an ending slash) and "." (with or
without the ending slash) in the git diff family.
It also fixes pathspec matching for the case of an empty pathspec, since a
"." in the top-level directory (or enough ".." under subdirectories) will
result in an empty pathspec. We used to not match it against anything, but
it should in fact match everything.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This fixes up usage of ".." (without an ending slash) and "." (with or
without the ending slash) in the git diff family.
It also fixes pathspec matching for the case of an empty pathspec, since a
"." in the top-level directory (or enough ".." under subdirectories) will
result in an empty pathspec. We used to not match it against anything, but
it should in fact match everything.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diffcore-pathspec.c | diff | blob | history | |
read-cache.c | diff | blob | history | |
setup.c | diff | blob | history |