Code

diffstat rename squashing fix.
authorJunio C Hamano <junkio@cox.net>
Mon, 15 May 2006 05:07:28 +0000 (22:07 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 15 May 2006 05:07:28 +0000 (22:07 -0700)
commitcc908b82a4a09df555fbc4c32cfbe8b8cffae865
treef2b1491688ad2f5ac80b4b3a3f13e2da0584391a
parent975bf9cf5ad5d440f98f464ae8124609a4835ce1
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>
diff.c