(no commit message)
[git.git] / git.sh
1 #!/bin/sh
2
3 cmd=
4 path=$(dirname $0)
5 case "$#" in
6 0)      ;;
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         test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
15         test -x $path/git-$cmd.exe && exec $path/git-$cmd.exe "$@" ;;
16 esac
17
18 echo "Usage: git COMMAND [OPTIONS] [TARGET]"
19 if [ -n "$cmd" ]; then
20     echo " git command '$cmd' not found: commands are:"
21 else
22     echo " git commands are:"
23 fi
24
25 cat <<\EOF
26     add apply archimport bisect branch checkout cherry clone
27     commit count-objects cvsimport diff fetch format-patch
28     fsck-cache get-tar-commit-id init-db log ls-remote octopus
29     pack-objects parse-remote patch-id prune pull push rebase
30     relink rename repack request-pull reset resolve revert
31     send-email shortlog show-branch status tag verify-tag
32     whatchanged
33 EOF