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>
Shawn O. Pearce committed
Jul 9, 2007 at 02:30 UTC
70a7595cc07f38d4a83dff1d4697eb49c2e65b2c
1 file changed
+1
git-gui.sh
+1
@@ -294,6 +294,7 @@ proc _git_cmd {name} {
294
295
if {[catch {set v $_git_cmd_path($name)}]} {
296
switch -- $name {
297
+ version -
298
--version -
299
--exec-path { return [list $::_git $name] }
300
}