Skip to content

Commit

Permalink
Add [v]iew patch in git-am interactive.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Oct 26, 2005
1 parent 271440e commit f89ad67
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions git-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,17 @@ do
echo "--------------------------"
cat "$dotest/final-commit"
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
case "$reply" in
y*|Y*) action=yes ;;
a*|A*) action=yes interactive= ;;
n*|N*) action=skip ;;
e*|E*) "${VISUAL:-${EDITOR:-vi}}" "$dotest/final-commit"
[yY]*) action=yes ;;
[aA]*) action=yes interactive= ;;
[nN]*) action=skip ;;
[eE]*) "${VISUAL:-${EDITOR:-vi}}" "$dotest/final-commit"
action=again ;;
[vV]*) action=again
LESS=-S ${PAGER:-less} "$dotest/patch" ;;
*) action=again ;;
esac
done
else
Expand Down

0 comments on commit f89ad67

Please sign in to comment.