projects
/
rrq
/
reviewtool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c042ae6
)
add ? to view commit info
author
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Tue, 15 Nov 2022 02:34:30 +0000
(13:34 +1100)
committer
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Tue, 15 Nov 2022 02:34:30 +0000
(13:34 +1100)
git-review
patch
|
blob
|
history
diff --git
a/git-review
b/git-review
index c671cd98b3cf9bb62fa28b3a34b6e54f471f160f..7f317d97afdc10b054875520d723d2c3756baf82 100755
(executable)
--- a/
git-review
+++ b/
git-review
@@
-14,13
+14,13
@@
elif [ $# = 2 ] ; then
N=$1
FOCUS=$2
fi
N=$1
FOCUS=$2
fi
-FMT='--pretty=format:<s:%h>%h %d %s'
+FMT='--pretty=format:<s:%h>%h
[%aN/%as]
%d %s'
GRAPH="$(git log --graph --full-history "$FMT" --all $FOCUS )"
PROJECT="$(git rev-parse --show-toplevel| sed 's/.*\///')"
GRAPH="$(git log --graph --full-history "$FMT" --all $FOCUS )"
PROJECT="$(git rev-parse --show-toplevel| sed 's/.*\///')"
-X=$(echo "$GRAPH"
| iselect -t "$PROJECT" -n git-review -p $N -P -K -k/
-kp )
+X=$(echo "$GRAPH"
q | iselect -t "$PROJECT" -n git-review -p $N -P -K -k/ -k\?
-kp )
[ -z "$X" ] && exit 0
X=( ${(s[:])X} )
[ -z "$X" ] && exit 0
X=( ${(s[:])X} )
@@
-29,11
+29,13
@@
K=$X[2]
X=$X[3]
if [ "$K" = / ] ; then
read "x?Search: "
X=$X[3]
if [ "$K" = / ] ; then
read "x?Search: "
- N=${"$(echo "$GRAPH" | grep -nF "$x")"%%:*}
+ N=${"$(echo "$GRAPH" | grep -
a
nF "$x")"%%:*}
elif [ "$K" = "p" ] ; then
# previous commit
Z=${"$(git rev-parse ${X}~1)"[1,7]}
[ -z "$Z" ] || N=${"$(echo "$GRAPH" | grep -nF "$Z")"%%:*}
elif [ "$K" = "p" ] ; then
# previous commit
Z=${"$(git rev-parse ${X}~1)"[1,7]}
[ -z "$Z" ] || N=${"$(echo "$GRAPH" | grep -nF "$Z")"%%:*}
+elif [ "$K" = "?" ] ; then
+ git log --no-walk --notes --show-signature --pretty=fuller "$X" | less
else
FOCUS=$FOCUS git-show-i $X~1 $X
fi
else
FOCUS=$FOCUS git-show-i $X~1 $X
fi