[PATCH] archimport: avoid committing on an Arch tag
[git] / git
1 #!/bin/sh
2
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
12
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:"
18 fi
19
20 alternatives=$(cd $path &&
21                ls git-*-script | sed -e 's/git-//' -e 's/-script//')
22 echo $alternatives | fmt | sed 's/^/  /'