[PATCH] Change the sed seperator in t/t6000-lib.sh.
[git/dscho.git] / git
blob9f511956ae1dd2dcfef3e2c16e13f6ba6f69175f
1 #!/bin/sh
2 cmd="$1"
3 shift
4 if which git-$cmd-script >& /dev/null
5 then
6 exec git-$cmd-script "$@"
7 fi
9 if which git-$cmd >& /dev/null
10 then
11 exec git-$cmd "$@"
14 alternatives=($(echo $PATH | tr ':' '\n' | while read i; do ls $i/git-*-script 2> /dev/null; done))
16 echo Git command "'$cmd'" not found. Try one of
17 for i in "${alternatives[@]}"; do
18 echo $i | sed 's:^.*/git-: :' | sed 's:-script$::'
19 done | sort | uniq