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@@ && exec $path/git-$cmd@@X@@ "$@"
22 ;;
23 esac
24 ;;
25esac
26
27echo "Usage: git COMMAND [OPTIONS] [TARGET]"
28if [ -n "$cmd" ]; then
29 echo "git command '$cmd' not found."
30fi
31echo "git commands are:"
32
33fmt <<\EOF | sed -e 's/^/ /'
34add
35apply
36archimport
37bisect
38branch
39checkout
40cherry
41clone
42commit
43count-objects
44cvsimport
45diff
46fetch
47format-patch
48fsck-objects
49get-tar-commit-id
50init-db
51log
52ls-remote
53octopus
54pack-objects
55parse-remote
56patch-id
57prune
58pull
59push
60rebase
61relink
62rename
63repack
64request-pull
65reset
66resolve
67revert
68send-email
69shortlog
70show-branch
71status
72tag
73verify-tag
74whatchanged
75EOF