Use git-update-ref in scripts.
[git/gitweb.git] / git.sh
blob178d0f0c09cad4859656dd4480ad9c096032f545
1 #!/bin/sh
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 esac
17 echo "Usage: git COMMAND [OPTIONS] [TARGET]"
18 if [ -n "$cmd" ]; then
19 echo " git command '$cmd' not found: commands are:"
20 else
21 echo " git commands are:"
24 cat <<\EOF
25 add apply archimport bisect branch checkout cherry clone
26 commit count-objects cvsimport diff fetch format-patch
27 fsck-cache get-tar-commit-id init-db log ls-remote octopus
28 pack-objects parse-remote patch-id prune pull push rebase
29 relink rename repack request-pull reset resolve revert
30 send-email shortlog show-branch status tag verify-tag
31 whatchanged
32 EOF