summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6cf6193)
raw | patch | inline | side by side (parent: 6cf6193)
author | freku045@student.liu.se <freku045@student.liu.se> | |
Tue, 13 Dec 2005 22:30:31 +0000 (23:30 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 14 Dec 2005 10:53:44 +0000 (02:53 -0800) |
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cherry.sh | patch | blob | history |
diff --git a/git-cherry.sh b/git-cherry.sh
index 867522b37ff4fd85f963019a025ba07789ffef37..5e9bd0caf2e1141e3045ea6c3a1f0e9d9285c492 100755 (executable)
--- a/git-cherry.sh
+++ b/git-cherry.sh
# Copyright (c) 2005 Junio C Hamano.
#
-. git-sh-setup
-
-usage="usage: $0 "'[-v] <upstream> [<head>]
-
- __*__*__*__*__> <upstream>
+USAGE='[-v] <upstream> [<head>]'
+LONG_USAGE=' __*__*__*__*__> <upstream>
/
fork-point
\__+__+__+__+__+__+__+__> <head>
compared against the change each commit between the fork-point and
<upstream> introduces. If the change seems to be in the upstream,
it is shown on the standard output with prefix "+". Otherwise
-it is shown with prefix "-".
-'
+it is shown with prefix "-".'
+. git-sh-setup
case "$1" in -v) verbose=t; shift ;; esac
2) upstream=`git-rev-parse --verify "$1"` &&
ours=`git-rev-parse --verify "$2"` || exit
;;
-*) echo >&2 "$usage"; exit 1 ;;
+*) usage ;;
esac
# Note that these list commits in reverse order;