summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bee866f)
raw | patch | inline | side by side (parent: bee866f)
author | Alexander Gavrilov <angavrilov@gmail.com> | |
Wed, 8 Oct 2008 07:05:37 +0000 (11:05 +0400) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Tue, 21 Oct 2008 11:37:39 +0000 (22:37 +1100) |
Currently it displays an ugly error box, because the treediffs array
is not filled for such commits. This fixes it by making
getmergediffline add the filenames it sees to the treediffs array
like gettreediffline does.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
is not filled for such commits. This fixes it by making
getmergediffline add the filenames it sees to the treediffs array
like gettreediffline does.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 5830941b7a9649505e668dd03ae2fe79aeb585be..f6a3e10d8ee6084c81d284234c61cb92b830e523 100755 (executable)
--- a/gitk
+++ b/gitk
proc mergediff {id} {
global diffmergeid mdifffd
- global diffids
+ global diffids treediffs
global parents
global diffcontext
global diffencoding
set diffmergeid $id
set diffids $id
+ set treediffs($id) {}
# this doesn't seem to actually affect anything...
set cmd [concat | git diff-tree --no-commit-id --cc -U$diffcontext $id]
if {$limitdiffs && $vfilelimit($curview) ne {}} {
proc getmergediffline {mdf id np} {
global diffmergeid ctext cflist mergemax
- global difffilestart mdifffd
+ global difffilestart mdifffd treediffs
global diffencoding
$ctext conf -state normal
$ctext insert end "\n"
set here [$ctext index "end - 1c"]
lappend difffilestart $here
+ lappend treediffs($id) $fname
add_flist [list $fname]
set diffencoding [get_path_encoding $fname]
set l [expr {(78 - [string length $fname]) / 2}]