From: Shawn O. Pearce Date: Mon, 9 Jul 2007 06:30:24 +0000 (-0400) Subject: git-gui: Treat `git version` as `git --version` X-Git-Tag: v1.5.3-rc1~16^2~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=70a7595cc07f38d4a83dff1d4697eb49c2e65b2c;p=git.git 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 --- diff --git a/git-gui.sh b/git-gui.sh index 9b342f084..a3ac5daf1 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] } }