ea710aafc130afb5b4adabcaab4ec996662cdc34
1#!/bin/sh
2
3cmd=
4path=$(dirname $0)
5case "$#" in
60) ;;
7*) cmd="$1"
8 shift
9 case "$cmd" in
10 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
11 echo "git version @@GIT_VERSION@@"
12 exit 0 ;;
13 esac
14
15 test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
16
17 # In case we're running on Cygwin...
18 test -x $path/git-$cmd.exe && exec $path/git-$cmd.exe "$@" ;;
19esac
20
21echo "Usage: git COMMAND [OPTIONS] [TARGET]"
22if [ -n "$cmd" ]; then
23 echo " git command '$cmd' not found: commands are:"
24else
25 echo " git commands are:"
26fi
27
28cat <<\EOF
29 add apply archimport bisect branch checkout cherry clone
30 commit count-objects cvsimport diff fetch format-patch
31 fsck-cache get-tar-commit-id init-db log ls-remote octopus
32 pack-objects parse-remote patch-id prune pull push rebase
33 relink rename repack request-pull reset resolve revert
34 send-email shortlog show-branch status tag verify-tag
35 whatchanged
36EOF