git-cherry: Usage string clean-up, use the 'usage' function
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
43a95cfbc9ce27bfb40746b90717e041805a906c
1 file changed
+5
-8
git-cherry.sh
+5
-8
@@ -3,11 +3,8 @@
3
# Copyright (c) 2005 Junio C Hamano.
4
#
5
6
-. git-sh-setup
7
-
8
-usage="usage: $0 "'[-v] <upstream> [<head>]
9
-
10
- __*__*__*__*__> <upstream>
6
+USAGE='[-v] <upstream> [<head>]'
7
+LONG_USAGE=' __*__*__*__*__> <upstream>
8
/
9
fork-point
10
\__+__+__+__+__+__+__+__> <head>
@@ -16,8 +13,8 @@ Each commit between the fork-point and <head> is examined, and
13
compared against the change each commit between the fork-point and
14
<upstream> introduces. If the change seems to be in the upstream,
15
it is shown on the standard output with prefix "+". Otherwise
19
-it is shown with prefix "-".
20
-'
16
+it is shown with prefix "-".'
17
+. git-sh-setup
18
19
case "$1" in -v) verbose=t; shift ;; esac
20
@@ -35,7 +32,7 @@ case "$#" in
32
2) upstream=`git-rev-parse --verify "$1"` &&
33
ours=`git-rev-parse --verify "$2"` || exit
34
;;
38
-*) echo >&2 "$usage"; exit 1 ;;
35
+*) usage ;;
36
esac
37
38
# Note that these list commits in reverse order;