@matheusbsbs / matheus-bagliano / commits / e1a7c81f6a
Fork 0

gitk: Minor cleanups

Removed some unnecessary quotes and globals, updated copyright notice. Signed-off-by: Paul Mackerras <paulus@samba.org>

Paul Mackerras committed Jul 18, 2006 at 01:52 UTC e1a7c81f6a8c5a96a3d07632514f85d9470c3a82
1 file changed +5 -7
gitk
+5 -7
@@ -2,7 +2,7 @@
2 # Tcl ignores the next line -*- tcl -*- \
3 exec wish "$0" -- "$@"
4
5 -# Copyright (C) 2005 Paul Mackerras. All rights reserved.
5 +# Copyright (C) 2005-2006 Paul Mackerras. All rights reserved.
6 # This program is free software; it may be used, copied, modified
7 # and distributed under the terms of the GNU General Public Licence,
8 # either version 2, or (at your option) any later version.
@@ -341,13 +341,13 @@ proc readrefs {} {
341 set tag {}
342 catch {
343 set commit [exec git rev-parse "$id^0"]
344 - if {"$commit" != "$id"} {
344 + if {$commit != $id} {
345 set tagids($name) $commit
346 lappend idtags($commit) $name
347 }
348 }
349 catch {
350 - set tagcontents($name) [exec git cat-file tag "$id"]
350 + set tagcontents($name) [exec git cat-file tag $id]
351 }
352 } elseif { $type == "heads" } {
353 set headids($name) $id
@@ -3263,8 +3263,7 @@ proc show_status {msg} {
3263
3264 proc finishcommits {} {
3265 global commitidx phase curview
3266 - global canv mainfont ctext maincursor textcursor
3267 - global findinprogress pending_select
3266 + global pending_select
3267
3268 if {$commitidx($curview) > 0} {
3269 drawrest
@@ -3307,9 +3306,7 @@ proc notbusy {what} {
3306 }
3307
3308 proc drawrest {} {
3310 - global numcommits
3309 global startmsecs
3312 - global canvy0 numcommits linespc
3310 global rowlaidout commitidx curview
3311 global pending_select
3312
@@ -3323,6 +3320,7 @@ proc drawrest {} {
3320 }
3321
3322 set drawmsecs [expr {[clock clicks -milliseconds] - $startmsecs}]
3323 + #global numcommits
3324 #puts "overall $drawmsecs ms for $numcommits commits"
3325 }
3326