We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b1c7c commit 185612bCopy full SHA for 185612b
git-cherry
@@ -5,7 +5,7 @@
5
6
. git-sh-setup-script || die "Not a git archive."
7
8
-usage="usage: $0 "'<upstream> [<head>]
+usage="usage: $0 "'[-v] <upstream> [<head>]
9
10
__*__*__*__*__> <upstream>
11
/
@@ -29,6 +29,8 @@ The output is intended to be used as:
29
done
30
'
31
32
+case "$1" in -v) verbose=t; shift ;; esac
33
+
34
case "$#,$1" in
35
1,*..*)
36
upstream=$(expr "$1" : '\(.*\)\.\.') ours=$(expr "$1" : '.*\.\.\(.*\)$')
@@ -83,6 +85,10 @@ do
83
85
else
84
86
sign=+
87
fi
88
+ case "$verbose" in
89
+ t)
90
+ c=$(git-rev-list --pretty=oneline --max-count=1 $c)
91
+ esac
92
case "$O" in
93
'') O="$sign $c" ;;
94
*) O="$sign $c$LF$O" ;;
0 commit comments