3 # Review commits based on the branch graph
13 elif [ $# = 2 ] ; then
17 FMT='--pretty=format:<s:%h>%h [%aN/%as]%d %s'
19 GRAPH="$(git log --graph --full-history "$FMT" --all $FOCUS )"
21 PROJECT="$(git rev-parse --show-toplevel| sed 's/.*\///')"
23 X=$(echo "$GRAPH"q | iselect -t "$PROJECT" -n git-review -p $N -P -K -k/ -k\? -kp )
30 if [ "$K" = / ] ; then
32 N=${"$(echo "$GRAPH" | grep -anF "$x")"%%:*}
33 elif [ "$K" = "p" ] ; then
35 Z=${"$(git rev-parse ${X}~1)"[1,7]}
36 [ -z "$Z" ] || N=${"$(echo "$GRAPH" | grep -nF "$Z")"%%:*}
37 elif [ "$K" = "?" ] ; then
38 git log --no-walk --notes --show-signature --pretty=fuller "$X" | less
40 FOCUS=$FOCUS git-show-i $X~1 $X