Add [v]iew patch in git-am interactive.
Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
271440e3b6
commit
f89ad67fb0
13
git-am.sh
13
git-am.sh
|
@ -270,14 +270,17 @@ do
|
||||||
echo "--------------------------"
|
echo "--------------------------"
|
||||||
cat "$dotest/final-commit"
|
cat "$dotest/final-commit"
|
||||||
echo "--------------------------"
|
echo "--------------------------"
|
||||||
echo -n "Apply? [y]es/[n]o/[e]dit/[a]ccept all "
|
echo -n "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all "
|
||||||
read reply
|
read reply
|
||||||
case "$reply" in
|
case "$reply" in
|
||||||
y*|Y*) action=yes ;;
|
[yY]*) action=yes ;;
|
||||||
a*|A*) action=yes interactive= ;;
|
[aA]*) action=yes interactive= ;;
|
||||||
n*|N*) action=skip ;;
|
[nN]*) action=skip ;;
|
||||||
e*|E*) "${VISUAL:-${EDITOR:-vi}}" "$dotest/final-commit"
|
[eE]*) "${VISUAL:-${EDITOR:-vi}}" "$dotest/final-commit"
|
||||||
action=again ;;
|
action=again ;;
|
||||||
|
[vV]*) action=again
|
||||||
|
LESS=-S ${PAGER:-less} "$dotest/patch" ;;
|
||||||
|
*) action=again ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue