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