author | Paul Mackerras <paulus@samba.org> | |
Tue, 4 Nov 2008 10:09:00 +0000 (21:09 +1100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Tue, 4 Nov 2008 10:09:00 +0000 (21:09 +1100) | ||
commit | 48a81b7cda1e58d8cc4d9bcadce76bbf1680ab7d | |
tree | 55f3847f80dda163415178cb5e2797a676f1f966 | tree | snapshot |
parent | fc4977e1b989503c6dcfbc527cda2458d63d0400 | commit | diff |
gitk: Cope with unmerged files in local changes
This modifies gettreediffline so that it when we get both a "U" line
and an "M" line for the same file in the output from git diff-files
or git diff-index --cached (used when the user clicks on a fake commit)
we don't add the same filename to the treediff list twice.
This also makes getblobdiffline recognize the "* Unmerged path ..."
lines we get when we ask for the actual diffs, and makes a tiny
optimization in makediffhdr.
Signed-off-by: Paul Mackerras <paulus@samba.org>
This modifies gettreediffline so that it when we get both a "U" line
and an "M" line for the same file in the output from git diff-files
or git diff-index --cached (used when the user clicks on a fake commit)
we don't add the same filename to the treediff list twice.
This also makes getblobdiffline recognize the "* Unmerged path ..."
lines we get when we ask for the actual diffs, and makes a tiny
optimization in makediffhdr.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |