]> git.ipfire.org Git - thirdparty/git.git/blame - git
Merge with gitk --parents change.
[thirdparty/git.git] / git
CommitLineData
e764b8e8 1#!/bin/sh
fc865468 2
b0c6f8d7
JH
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
fc865468 12
b0c6f8d7
JH
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
fc865468 19
b0c6f8d7
JH
20alternatives=$(cd $path &&
21 ls git-*-script | sed -e 's/git-//' -e 's/-script//')
22echo $alternatives | fmt | sed 's/^/ /'