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