summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79b2c75)
raw | patch | inline | side by side (parent: 79b2c75)
author | Stephen Rothwell <sfr@canb.auug.org.au> | |
Thu, 30 Mar 2006 05:13:12 +0000 (16:13 +1100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Tue, 4 Apr 2006 23:14:02 +0000 (09:14 +1000) |
This patch allows you to enter a head name in the SHA1 id: field.
It also removes some unnecessary global declarations.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
It also removes some unnecessary global declarations.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 90afec92df5c67f0a8fec32569cbdb635c05dbbf..4bc7946aeef65f919f638cedcd0263874d8c11bd 100755 (executable)
--- a/gitk
+++ b/gitk
}
proc gotocommit {} {
- global sha1string currentid commitrow tagids
+ global sha1string currentid commitrow tagids headids
global displayorder numcommits
if {$sha1string == {}
|| ([info exists currentid] && $sha1string == $currentid)} return
if {[info exists tagids($sha1string)]} {
set id $tagids($sha1string)
+ } elseif {[info exists headids($sha1string)]} {
+ set id $headids($sha1string)
} else {
set id [string tolower $sha1string]
if {[regexp {^[0-9a-f]{4,39}$} $id]} {
if {[regexp {^[0-9a-fA-F]{4,}$} $sha1string]} {
set type "SHA1 id"
} else {
- set type "Tag"
+ set type "Tag/Head"
}
error_popup "$type $sha1string is not known"
}
proc rereadrefs {} {
global idtags idheads idotherrefs
- global tagids headids otherrefids
set refids [concat [array names idtags] \
[array names idheads] [array names idotherrefs]]