author | Junio C Hamano <junkio@cox.net> | |
Mon, 15 May 2006 05:07:28 +0000 (22:07 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 15 May 2006 05:07:28 +0000 (22:07 -0700) | ||
commit | cc908b82a4a09df555fbc4c32cfbe8b8cffae865 | |
tree | f2b1491688ad2f5ac80b4b3a3f13e2da0584391a | tree | snapshot |
parent | 975bf9cf5ad5d440f98f464ae8124609a4835ce1 | commit | diff |
diffstat rename squashing fix.
When renaming leading/a/filename to leading/b/filename (and
"filename" is sufficiently long), we tried to squash the rename
to "leading/{a => b}/filename". However, when "/a" or "/b" part
is empty, we underflowed and tried to print a substring of
length -1.
Signed-off-by: Junio C Hamano <junkio@cox.net>
When renaming leading/a/filename to leading/b/filename (and
"filename" is sufficiently long), we tried to squash the rename
to "leading/{a => b}/filename". However, when "/a" or "/b" part
is empty, we underflowed and tried to print a substring of
length -1.
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | diff | blob | history |