Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Fix some bugs causing application error popups.
author
Paul Mackerras
<paulus@dorrigo.(none)>
Sun, 31 Jul 2005 11:35:21 +0000
(21:35 +1000)
committer
Paul Mackerras
<paulus@dorrigo.(none)>
Sun, 31 Jul 2005 11:35:21 +0000
(21:35 +1000)
Specifically this should fix the following errors:
wrong # args: should be "startdiff ids" (fix from Junio Hamano)
can't read "filelines(....)": no such element in array
can't unset "treepending": no such variable
gitk
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
c8a4acb
)
diff --git
a/gitk
b/gitk
index 2aa970d5cffea4bea0e3f8f1a100f68b53e5a7af..efdb0a7f613d9f8715d32bf6545ed656ef4f1f1b 100755
(executable)
--- a/
gitk
+++ b/
gitk
@@
-1729,7
+1729,9
@@
proc mergediff {id} {
set diffpindex -1
set diffmergegca [findgca $parents($id)]
if {[info exists mergefilelist($id)]} {
set diffpindex -1
set diffmergegca [findgca $parents($id)]
if {[info exists mergefilelist($id)]} {
- showmergediff
+ if {$mergefilelist($id) ne {}} {
+ showmergediff
+ }
} else {
contmergediff {}
}
} else {
contmergediff {}
}
@@
-1753,7
+1755,7
@@
proc findgca {ids} {
proc contmergediff {ids} {
global diffmergeid diffpindex parents nparents diffmergegca
proc contmergediff {ids} {
global diffmergeid diffpindex parents nparents diffmergegca
- global treediffs mergefilelist diffids
+ global treediffs mergefilelist diffids
treepending
# diff the child against each of the parents, and diff
# each of the parents against the GCA.
# diff the child against each of the parents, and diff
# each of the parents against the GCA.
@@
-1814,8
+1816,8
@@
proc contmergediff {ids} {
proc showmergediff {} {
global cflist diffmergeid mergefilelist parents
proc showmergediff {} {
global cflist diffmergeid mergefilelist parents
- global diffopts diffinhunk currentfile
diffblocked
- global
groupfilelast mergefd
s
+ global diffopts diffinhunk currentfile
currenthunk filelines
+ global
diffblocked groupfilelast mergefds groupfilenum grouphunk
s
set files $mergefilelist($diffmergeid)
foreach f $files {
set files $mergefilelist($diffmergeid)
foreach f $files {
@@
-1826,6
+1828,8
@@
proc showmergediff {} {
catch {unset currentfile}
catch {unset currenthunk}
catch {unset filelines}
catch {unset currentfile}
catch {unset currenthunk}
catch {unset filelines}
+ catch {unset groupfilenum}
+ catch {unset grouphunks}
set groupfilelast -1
foreach p $parents($diffmergeid) {
set cmd [list | git-diff-tree -p $p $diffmergeid]
set groupfilelast -1
foreach p $parents($diffmergeid) {
set cmd [list | git-diff-tree -p $p $diffmergeid]
@@
-2700,7
+2704,7
@@
proc diffvssel {dirn} {
$ctext conf -state disabled
$ctext tag delete Comments
$ctext tag remove found 1.0 end
$ctext conf -state disabled
$ctext tag delete Comments
$ctext tag remove found 1.0 end
- startdiff
$newid [list
$oldid]
+ startdiff
[list $newid
$oldid]
}
proc mkpatch {} {
}
proc mkpatch {} {