@matheusbsbs / matheus-bagliano / commits / 4e7824b12e
Fork 0

git-revert: Usage string clean-up

Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>

freku045@student.liu.se committed Dec 13, 2005 at 23:30 UTC 4e7824b12e71127f1e3cf76fe2855887599c0dc6
1 file changed +5 -14
git-revert.sh
+5 -14
@@ -3,29 +3,20 @@
3 # Copyright (c) 2005 Linus Torvalds
4 # Copyright (c) 2005 Junio C Hamano
5 #
6 -. git-sh-setup
6
7 case "$0" in
8 *-revert* )
9 test -t 0 && edit=-e
11 - me=revert ;;
10 + me=revert
11 + USAGE='[--edit | --no-edit] [-n] <commit-ish>' ;;
12 *-cherry-pick* )
13 edit=
14 - me=cherry-pick ;;
14 + me=cherry-pick
15 + USAGE='[--edit] [-n] [-r] <commit-ish>' ;;
16 * )
17 die "What are you talking about?" ;;
18 esac
18 -
19 -usage () {
20 - case "$me" in
21 - cherry-pick)
22 - die "usage git $me [--edit] [-n] [-r] <commit-ish>"
23 - ;;
24 - revert)
25 - die "usage git $me [--edit | --no-edit] [-n] <commit-ish>"
26 - ;;
27 - esac
28 -}
19 +. git-sh-setup
20
21 no_commit= replay=
22 while case "$#" in 0) break ;; esac