]> git.ipfire.org Git - thirdparty/git.git/blame - git.sh
Remove 'Previously this command was known as ...' messages.
[thirdparty/git.git] / git.sh
CommitLineData
215a7ad1
JH
1#!/bin/sh
2
3cmd=
d9c74a80 4path=$(dirname "$0")
215a7ad1
JH
5case "$#" in
60) ;;
7*) cmd="$1"
8 shift
6a2e50f9
JH
9 case "$cmd" in
10 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
11 echo "git version @@GIT_VERSION@@"
12 exit 0 ;;
13 esac
039c6f16 14
b12bbd59 15 test -x "$path/git-$cmd" && exec "$path/git-$cmd" "$@"
039c6f16
PA
16
17 case '@@X@@' in
18 '')
19 ;;
20 *)
b12bbd59
JH
21 test -x "$path/git-$cmd@@X@@" &&
22 exec "$path/git-$cmd@@X@@" "$@"
039c6f16
PA
23 ;;
24 esac
25 ;;
215a7ad1
JH
26esac
27
28echo "Usage: git COMMAND [OPTIONS] [TARGET]"
29if [ -n "$cmd" ]; then
0842acff 30 echo "git command '$cmd' not found."
215a7ad1 31fi
0842acff 32echo "git commands are:"
215a7ad1 33
0842acff
JH
34fmt <<\EOF | sed -e 's/^/ /'
35add
36apply
37archimport
38bisect
39branch
40checkout
41cherry
42clone
43commit
44count-objects
45cvsimport
46diff
47fetch
48format-patch
49fsck-objects
50get-tar-commit-id
51init-db
52log
53ls-remote
54octopus
55pack-objects
56parse-remote
57patch-id
58prune
59pull
60push
61rebase
62relink
63rename
64repack
65request-pull
66reset
67resolve
68revert
69send-email
70shortlog
71show-branch
72status
73tag
74verify-tag
75whatchanged
215a7ad1 76EOF