author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 02:48:56 +0000 (21:48 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 07:54:20 +0000 (02:54 -0500) | ||
commit | c950c66ed91ba8e66dd26c3b19167e6eecb47fe9 | |
tree | 19d5ab82309c0c24e12e137465a1d28ec45e1655 | tree | snapshot |
parent | 16d18b853b91e66219a26130c0485914c2969389 | commit | diff |
git-gui: Cleanup usage of gitdir global variable.
The gitdir global variable is essentially read-only, and is used rather
frequently. So are appname and reponame. Needing to constantly declare
'global appname' just so we can access the value as $appname is downright
annoying and redundant. So instead I'm declaring these as procedures and
changing all uses to invoke the procedure rather than access the global
directly.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
The gitdir global variable is essentially read-only, and is used rather
frequently. So are appname and reponame. Needing to constantly declare
'global appname' just so we can access the value as $appname is downright
annoying and redundant. So instead I'm declaring these as procedures and
changing all uses to invoke the procedure rather than access the global
directly.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |