author | Paul Mackerras <paulus@samba.org> | |
Tue, 2 May 2006 09:55:31 +0000 (19:55 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Tue, 2 May 2006 09:55:31 +0000 (19:55 +1000) | ||
commit | 89b11d3ba5132e44cc04826c297a34e31788d0ab | |
tree | 7fd0a041af80777c12a41d326f2a47b370c8e24b | tree | snapshot |
parent | da7c24dd9c75d014780179f8eb843968919e4c46 | commit | diff |
gitk: Fix file list display when files are renamed
The conversion of the file list to use a text widget assumed incorrectly
that the list of files from git-diff-tree -r would correspond 1-1 with
the diff sections in the output of git-diff-tree -r -p -C, which is
not true when renames are detected. This fixes it by keeping the
elements in the difffilestart list in the order they appear in the
file list window.
Since this means that the elements of difffilestart are no longer
necessarily in ascending order, it's somewhat hard to do the dynamic
highlighting in the file list as the diff window is scrolled, so I
have taken that out for now.
Signed-off-by: Paul Mackerras <paulus@samba.org>
The conversion of the file list to use a text widget assumed incorrectly
that the list of files from git-diff-tree -r would correspond 1-1 with
the diff sections in the output of git-diff-tree -r -p -C, which is
not true when renames are detected. This fixes it by keeping the
elements in the difffilestart list in the order they appear in the
file list window.
Since this means that the elements of difffilestart are no longer
necessarily in ascending order, it's somewhat hard to do the dynamic
highlighting in the file list as the diff window is scrolled, so I
have taken that out for now.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |