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