X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git.sh;h=7400c162578c5e18a2a406b09263394e485e0990;hb=a24e658649170c99fdcb4aaa41545679ad02f755;hp=ea710aafc130afb5b4adabcaab4ec996662cdc34;hpb=0542f48c894f924d94a2bd05f7e4cbab25656112;p=git.git diff --git a/git.sh b/git.sh index ea710aaf..7400c162 100755 --- a/git.sh +++ b/git.sh @@ -11,26 +11,65 @@ case "$#" in echo "git version @@GIT_VERSION@@" exit 0 ;; esac - - test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;; - - # In case we're running on Cygwin... - test -x $path/git-$cmd.exe && exec $path/git-$cmd.exe "$@" ;; + + test -x $path/git-$cmd && exec $path/git-$cmd "$@" + + case '@@X@@' in + '') + ;; + *) + test -x $path/git-$cmd@@X@@ && exec $path/git-$cmd@@X@@ "$@" + ;; + esac + ;; esac echo "Usage: git COMMAND [OPTIONS] [TARGET]" if [ -n "$cmd" ]; then - echo " git command '$cmd' not found: commands are:" -else - echo " git commands are:" + echo "git command '$cmd' not found." fi +echo "git commands are:" -cat <<\EOF - add apply archimport bisect branch checkout cherry clone - commit count-objects cvsimport diff fetch format-patch - fsck-cache get-tar-commit-id init-db log ls-remote octopus - pack-objects parse-remote patch-id prune pull push rebase - relink rename repack request-pull reset resolve revert - send-email shortlog show-branch status tag verify-tag - whatchanged +fmt <<\EOF | sed -e 's/^/ /' +add +apply +archimport +bisect +branch +checkout +cherry +clone +commit +count-objects +cvsimport +diff +fetch +format-patch +fsck-objects +get-tar-commit-id +init-db +log +ls-remote +octopus +pack-objects +parse-remote +patch-id +prune +pull +push +rebase +relink +rename +repack +request-pull +reset +resolve +revert +send-email +shortlog +show-branch +status +tag +verify-tag +whatchanged EOF