git-gui: Cleanup usage of gitdir global variable.
commitc950c66ed91ba8e66dd26c3b19167e6eecb47fe9
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 02:48:56 +0000 (20 21:48 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 07:54:20 +0000 (21 02:54 -0500)
tree19d5ab82309c0c24e12e137465a1d28ec45e1655
parent16d18b853b91e66219a26130c0485914c2969389
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>
git-gui.sh