giton commit Fix __attribute__ changes. (f1d090e)
   1#!/bin/sh
   2
   3cmd=
   4path=$(dirname $0)
   5case "$#" in
   60)      ;;
   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 "$@" ;;
  11esac
  12
  13echo "Usage: git COMMAND [OPTIONS] [TARGET]"
  14if [ -n "$cmd" ]; then
  15    echo " git command '$cmd' not found: commands are:"
  16else
  17    echo " git commands are:"
  18fi
  19
  20alternatives=$(cd $path &&
  21               ls git-*-script | sed -e 's/git-//' -e 's/-script//')
  22echo $alternatives | fmt | sed 's/^/  /'