summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a870ddc)
raw | patch | inline | side by side (parent: a870ddc)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 19 Jul 2007 04:43:16 +0000 (00:43 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 19 Jul 2007 04:43:16 +0000 (00:43 -0400) |
Running global takes slightly longer than just accessing the variable
via its package name, especially if the variable is just only once in
the procedure, or isn't even used at all in the procedure. So this is
a minor cleanup for some of our commonly invoked procedures.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
via its package name, especially if the variable is just only once in
the procedure, or isn't even used at all in the procedure. So this is
a minor cleanup for some of our commonly invoked procedures.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 0aabfba6b77f2d3e8f97ae99d006f84dc22445d7..c5ff7c8a833d289a112312d14bde6889bd29b2e1 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
}
proc reponame {} {
- global _reponame
- return $_reponame
+ return $::_reponame
}
proc is_MacOSX {} {
- global tcl_platform tk_library
if {[tk windowingsystem] eq {aqua}} {
return 1
}
}
proc is_Windows {} {
- global tcl_platform
- if {$tcl_platform(platform) eq {windows}} {
+ if {$::tcl_platform(platform) eq {windows}} {
return 1
}
return 0
}
proc is_Cygwin {} {
- global tcl_platform _iscygwin
+ global _iscygwin
if {$_iscygwin eq {}} {
- if {$tcl_platform(platform) eq {windows}} {
+ if {$::tcl_platform(platform) eq {windows}} {
if {[catch {set p [exec cygpath --windir]} err]} {
set _iscygwin 0
} else {