Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitk: Fix bug causing incorrect ref list contents when switching view
author
Paul Mackerras
<paulus@samba.org>
Wed, 29 Aug 2007 12:03:07 +0000
(22:03 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 29 Aug 2007 12:03:07 +0000
(22:03 +1000)
If the view we're switching to hadn't been read in, we hit an early
return in showview which meant we didn't update the ref list window.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
0380081
)
diff --git
a/gitk
b/gitk
index 060c4c0cb22df183b5febe21ad1af2c78d8aac12..0125f17fcd37b57742cd52ec79f9b9b4845a4363 100755
(executable)
--- a/
gitk
+++ b/
gitk
@@
-2007,6
+2007,7
@@
proc showview {n} {
.bar.view entryconf Edit* -state [expr {$n == 0? "disabled": "normal"}]
.bar.view entryconf Delete* -state [expr {$n == 0? "disabled": "normal"}]
+ run refill_reflist
if {![info exists viewdata($n)]} {
if {$selid ne {}} {
set pending_select $selid
@@
-2070,7
+2071,6
@@
proc showview {n} {
} elseif {$numcommits == 0} {
show_status "No commits selected"
}
- run refill_reflist
}
# Stuff relating to the highlighting facility