diff options
author | Junio C Hamano <junkio@cox.net> | 2005-12-14 17:30:03 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-14 17:30:03 -0800 |
commit | 1ed91937e5cd59fdbdfa5f15f6fac132d2b21ce0 (patch) | |
tree | f65b929c006c31043213152752ea0c80bf08b9e5 /git-cherry.sh | |
parent | a9572072f0ab0ac97e64b0dc01254a3ad95befe1 (diff) | |
parent | 294c695d8cfbcf95a5c33fc6ba386f496964defb (diff) |
Oh, I hate to do this but I ended up merging big usage string
cleanups from Fredrik, git-am enhancements that made a lot of
sense for non mbox users from HPA, and rebase changes (done
independently by me and Lukas) among other things, so git is
still in perpetual state of 1.0rc. 1.0 will probably be next
Wednesday, but who knows.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-cherry.sh')
-rwxr-xr-x | git-cherry.sh | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/git-cherry.sh b/git-cherry.sh index 867522b37f..5e9bd0caf2 100755 --- a/git-cherry.sh +++ b/git-cherry.sh @@ -3,11 +3,8 @@ # 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> @@ -16,8 +13,8 @@ Each commit between the fork-point and <head> is examined, and 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 @@ -35,7 +32,7 @@ case "$#" in 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; |