Staging
v0.5.0
https://github.com/git/git
Revision 756d846fea4ac4b3bf0a0aea9fbf721138cf34cc authored by Shawn O. Pearce on 12 March 2007, 17:24:10 UTC, committed by Shawn O. Pearce on 12 March 2007, 17:26:06 UTC
I got a little surprise one day when I tried to run 'git gui version'
outside of a Git repository to determine what version of git-gui was
installed on that system.  Turns out we were doing the repository
check long before we got around to command line argument handling.

We now look to see if the only argument we have been given is
'version' or '--version', and if so, print out the version and
exit immediately; long before we consider looking at the Git
version or working directory.  This way users can still get to
the git-gui version number even if Git's version cannot be read.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent bb616dd
History
Tip revision: 756d846fea4ac4b3bf0a0aea9fbf721138cf34cc authored by Shawn O. Pearce on 12 March 2007, 17:24:10 UTC
git-gui: Allow 'git gui version' outside of a repository
Tip revision: 756d846
File Mode Size
.gitignore -rw-r--r-- 36 bytes
GIT-VERSION-GEN -rwxr-xr-x 1.8 KB
Makefile -rw-r--r-- 1.5 KB
git-gui.sh -rwxr-xr-x 145.5 KB

back to top