summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-09 06:30:24 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-07-09 06:30:24 (GMT)
commit70a7595cc07f38d4a83dff1d4697eb49c2e65b2c (patch)
tree3017fa8faa47e92c5615c8c6c448be8a30114134 /git-gui.sh
parentc67298902ca36579b4cc43c1868cdb41279ef21b (diff)
downloadgit-70a7595cc07f38d4a83dff1d4697eb49c2e65b2c.zip
git-70a7595cc07f38d4a83dff1d4697eb49c2e65b2c.tar.gz
git-70a7595cc07f38d4a83dff1d4697eb49c2e65b2c.tar.bz2
git-gui: Treat `git version` as `git --version`
We know that the version subcommand of git is special. It does not currently have an executable link installed into $gitexecdir and we therefore would never match it with one of our file exists tests. So we forward any invocations to it directly to the git wrapper, as it is a builtin within that executable. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 9b342f0..a3ac5da 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -294,6 +294,7 @@ proc _git_cmd {name} {
if {[catch {set v $_git_cmd_path($name)}]} {
switch -- $name {
+ version -
--version -
--exec-path { return [list $::_git $name] }
}