Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitk: Re-read the descendent/ancestor tag & head info on update
author
Paul Mackerras
<paulus@samba.org>
Tue, 6 Jun 2006 23:19:45 +0000
(09:19 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Tue, 6 Jun 2006 23:19:45 +0000
(09:19 +1000)
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ef030b8
)
diff --git
a/gitk
b/gitk
index 91c11a368f71809e290ec669387849aea25dda76..9be10a43e603fcda952fde03254076f17275ed05 100755
(executable)
--- a/
gitk
+++ b/
gitk
@@
-238,6
+238,7
@@
proc updatecommits {} {
catch {unset selectedline}
catch {unset thickerline}
catch {unset viewdata($n)}
catch {unset selectedline}
catch {unset thickerline}
catch {unset viewdata($n)}
+ discardallcommits
readrefs
showview $n
}
readrefs
showview $n
}
@@
-4988,15
+4989,30
@@
proc wrcomcan {} {
# Stuff for finding nearby tags
proc getallcommits {} {
# Stuff for finding nearby tags
proc getallcommits {} {
- global allcstart allcommits
+ global allcstart allcommits
allcfd
set fd [open [concat | git rev-list --all --topo-order --parents] r]
set fd [open [concat | git rev-list --all --topo-order --parents] r]
+ set allcfd $fd
fconfigure $fd -blocking 0
set allcommits "reading"
nowbusy allcommits
restartgetall $fd
}
fconfigure $fd -blocking 0
set allcommits "reading"
nowbusy allcommits
restartgetall $fd
}
+proc discardallcommits {} {
+ global allparents allchildren allcommits allcfd
+ global desc_tags anc_tags alldtags tagisdesc allids desc_heads
+
+ if {![info exists allcommits]} return
+ if {$allcommits eq "reading"} {
+ catch {close $allcfd}
+ }
+ foreach v {allcommits allchildren allparents allids desc_tags anc_tags
+ alldtags tagisdesc desc_heads} {
+ catch {unset $v}
+ }
+}
+
proc restartgetall {fd} {
global allcstart
proc restartgetall {fd} {
global allcstart