2005-06-01 18:13:26 +02:00
|
|
|
#!/bin/sh
|
2005-06-14 20:01:49 +02:00
|
|
|
cmd="$1"
|
2005-06-01 18:13:26 +02:00
|
|
|
shift
|
2005-06-14 20:01:49 +02:00
|
|
|
if which git-$cmd-script >& /dev/null
|
|
|
|
then
|
|
|
|
exec git-$cmd-script "$@"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if which git-$cmd >& /dev/null
|
|
|
|
then
|
|
|
|
exec git-$cmd "$@"
|
|
|
|
fi
|
|
|
|
|
|
|
|
alternatives=($(echo $PATH | tr ':' '\n' | while read i; do ls $i/git-*-script 2> /dev/null; done))
|
|
|
|
|
|
|
|
echo Git command "'$cmd'" not found. Try one of
|
|
|
|
for i in "${alternatives[@]}"; do
|
|
|
|
echo $i | sed 's:^.*/git-: :' | sed 's:-script$::'
|
|
|
|
done | sort | uniq
|