]>
Commit | Line | Data |
---|---|---|
e764b8e8 | 1 | #!/bin/sh |
fc865468 | 2 | |
b0c6f8d7 JH |
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 | |
fc865468 | 12 | |
b0c6f8d7 JH |
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 | |
fc865468 | 19 | |
b0c6f8d7 JH |
20 | alternatives=$(cd $path && |
21 | ls git-*-script | sed -e 's/git-//' -e 's/-script//') | |
22 | echo $alternatives | fmt | sed 's/^/ /' |