[PATCH] Provide access to git_dir through get_git_dir().
[git.git] / git.sh
diff --git a/git.sh b/git.sh
index f967650..178d0f0 100755 (executable)
--- a/git.sh
+++ b/git.sh
@@ -6,6 +6,11 @@ case "$#" in
 0)     ;;
 *)     cmd="$1"
        shift
+       case "$cmd" in
+       -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+               echo "git version @@GIT_VERSION@@"
+               exit 0 ;;
+       esac
        test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
 esac