Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Add -v option to git-cherry.
author
Junio C Hamano
<junkio@cox.net>
Wed, 10 Aug 2005 06:58:35 +0000
(23:58 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 10 Aug 2005 07:00:22 +0000
(
00:00
-0700)
git-cherry
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
46b1c7c
)
diff --git
a/git-cherry
b/git-cherry
index f14f017efeacdeef01ff871f4f2ff1949463ee90..e186363647e2dcf0ecd72efb3cd609dde6a672bf 100755
(executable)
--- a/
git-cherry
+++ b/
git-cherry
@@
-5,7
+5,7
@@
. git-sh-setup-script || die "Not a git archive."
. git-sh-setup-script || die "Not a git archive."
-usage="usage: $0 "'<upstream> [<head>]
+usage="usage: $0 "'
[-v]
<upstream> [<head>]
__*__*__*__*__> <upstream>
/
__*__*__*__*__> <upstream>
/
@@
-29,6
+29,8
@@
The output is intended to be used as:
done
'
done
'
+case "$1" in -v) verbose=t; shift ;; esac
+
case "$#,$1" in
1,*..*)
upstream=$(expr "$1" : '\(.*\)\.\.') ours=$(expr "$1" : '.*\.\.\(.*\)$')
case "$#,$1" in
1,*..*)
upstream=$(expr "$1" : '\(.*\)\.\.') ours=$(expr "$1" : '.*\.\.\(.*\)$')
@@
-83,6
+85,10
@@
do
else
sign=+
fi
else
sign=+
fi
+ case "$verbose" in
+ t)
+ c=$(git-rev-list --pretty=oneline --max-count=1 $c)
+ esac
case "$O" in
'') O="$sign $c" ;;
*) O="$sign $c$LF$O" ;;
case "$O" in
'') O="$sign $c" ;;
*) O="$sign $c$LF$O" ;;