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