git.shon commit Sparse-directory safety fix. (b8041fe)
   1#!/bin/sh
   2
   3cmd=
   4path=$(dirname "$0")
   5case "$#" in
   60)      ;;
   7*)      cmd="$1"
   8        shift
   9        case "$cmd" in
  10        -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  11                echo "git version @@GIT_VERSION@@"
  12                exit 0 ;;
  13        esac
  14        
  15        test -x "$path/git-$cmd" && exec "$path/git-$cmd" "$@"
  16        
  17        case '@@X@@' in
  18            '')
  19                ;;
  20            *)
  21                test -x "$path/git-$cmd@@X@@" &&
  22                exec "$path/git-$cmd@@X@@" "$@"
  23                ;;
  24        esac
  25        ;;
  26esac
  27
  28echo "Usage: git COMMAND [OPTIONS] [TARGET]"
  29if [ -n "$cmd" ]; then
  30    echo "git command '$cmd' not found."
  31fi
  32echo "git commands are:"
  33
  34fmt <<\EOF | sed -e 's/^/    /'
  35add
  36apply
  37archimport
  38bisect
  39branch
  40checkout
  41cherry
  42clone
  43commit
  44count-objects
  45cvsimport
  46diff
  47fetch
  48format-patch
  49fsck-objects
  50get-tar-commit-id
  51init-db
  52log
  53ls-remote
  54octopus
  55pack-objects
  56parse-remote
  57patch-id
  58prune
  59pull
  60push
  61rebase
  62relink
  63rename
  64repack
  65request-pull
  66reset
  67resolve
  68revert
  69send-email
  70shortlog
  71show-branch
  72status
  73tag
  74verify-tag
  75whatchanged
  76EOF