Merge refs/heads/master from .
[git/jnareb-git.git] / git
blob0d8b382aa9a804cd3ec54591d78d8ad9b1b8766b
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-script && exec $path/git-$cmd-script "$@"
10 test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
11 esac
13 echo "Usage: git COMMAND [OPTIONS] [TARGET]"
14 if [ -n "$cmd" ]; then
15 echo " git command '$cmd' not found: commands are:"
16 else
17 echo " git commands are:"
20 alternatives=$(cd $path &&
21 ls git-*-script | sed -e 's/git-//' -e 's/-script//')
22 echo $alternatives | fmt | sed 's/^/ /'