Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitk: Minor cleanups
author
Paul Mackerras
<paulus@samba.org>
Mon, 17 Jul 2006 15:52:14 +0000
(
01:52
+1000)
committer
Paul Mackerras
<paulus@samba.org>
Mon, 17 Jul 2006 15:52:14 +0000
(
01:52
+1000)
Removed some unnecessary quotes and globals, updated copyright notice.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8a48571
)
diff --git
a/gitk
b/gitk
index 7d540c1b053c65b7988fb8fb351aa37523356273..7b86c1916a66c9b2d798ced809fc801bfe8f2944 100755
(executable)
--- a/
gitk
+++ b/
gitk
@@
-2,7
+2,7
@@
# Tcl ignores the next line -*- tcl -*- \
exec wish "$0" -- "$@"
# Tcl ignores the next line -*- tcl -*- \
exec wish "$0" -- "$@"
-# Copyright (C) 2005 Paul Mackerras. All rights reserved.
+# Copyright (C) 2005
-2006
Paul Mackerras. All rights reserved.
# This program is free software; it may be used, copied, modified
# and distributed under the terms of the GNU General Public Licence,
# either version 2, or (at your option) any later version.
# This program is free software; it may be used, copied, modified
# and distributed under the terms of the GNU General Public Licence,
# either version 2, or (at your option) any later version.
@@
-341,13
+341,13
@@
proc readrefs {} {
set tag {}
catch {
set commit [exec git rev-parse "$id^0"]
set tag {}
catch {
set commit [exec git rev-parse "$id^0"]
- if {
"$commit" != "$id"
} {
+ if {
$commit != $id
} {
set tagids($name) $commit
lappend idtags($commit) $name
}
}
catch {
set tagids($name) $commit
lappend idtags($commit) $name
}
}
catch {
- set tagcontents($name) [exec git cat-file tag
"$id"
]
+ set tagcontents($name) [exec git cat-file tag
$id
]
}
} elseif { $type == "heads" } {
set headids($name) $id
}
} elseif { $type == "heads" } {
set headids($name) $id
@@
-3263,8
+3263,7
@@
proc show_status {msg} {
proc finishcommits {} {
global commitidx phase curview
proc finishcommits {} {
global commitidx phase curview
- global canv mainfont ctext maincursor textcursor
- global findinprogress pending_select
+ global pending_select
if {$commitidx($curview) > 0} {
drawrest
if {$commitidx($curview) > 0} {
drawrest
@@
-3307,9
+3306,7
@@
proc notbusy {what} {
}
proc drawrest {} {
}
proc drawrest {} {
- global numcommits
global startmsecs
global startmsecs
- global canvy0 numcommits linespc
global rowlaidout commitidx curview
global pending_select
global rowlaidout commitidx curview
global pending_select
@@
-3323,6
+3320,7
@@
proc drawrest {} {
}
set drawmsecs [expr {[clock clicks -milliseconds] - $startmsecs}]
}
set drawmsecs [expr {[clock clicks -milliseconds] - $startmsecs}]
+ #global numcommits
#puts "overall $drawmsecs ms for $numcommits commits"
}
#puts "overall $drawmsecs ms for $numcommits commits"
}