[PATCH] Portability fix for Solaris 10/x86
[git/dscho.git] / git.sh
blobf9676507916184d567ed76d9e69a9ce2d8b00798
1 #!/bin/sh
3 cmd=
4 path=$(dirname $0)
5 case "$#" in
6 0) ;;
7 *) cmd="$1"
8 shift
9 test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
10 esac
12 echo "Usage: git COMMAND [OPTIONS] [TARGET]"
13 if [ -n "$cmd" ]; then
14 echo " git command '$cmd' not found: commands are:"
15 else
16 echo " git commands are:"
19 cat <<\EOF
20 add apply archimport bisect branch checkout cherry clone
21 commit count-objects cvsimport diff fetch format-patch
22 fsck-cache get-tar-commit-id init-db log ls-remote octopus
23 pack-objects parse-remote patch-id prune pull push rebase
24 relink rename repack request-pull reset resolve revert
25 send-email shortlog show-branch status tag verify-tag
26 whatchanged
27 EOF