1#!/bin/sh23cmd=4path=$(dirname $0)5case "$#" in60) ;;7*) cmd="$1"8shift9test -x $path/git-$cmd-script && exec $path/git-$cmd-script "$@"10test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;11esac1213echo "Usage: git COMMAND [OPTIONS] [TARGET]"14if [ -n "$cmd" ]; then15echo " git command '$cmd' not found: commands are:"16else17echo " git commands are:"18fi1920ls $path | sed -ne 's/^git-\(.*\)-script/ \1/p' | fmt