Skip to content

Commit

Permalink
git-am: minor cleanup
Browse files Browse the repository at this point in the history
This moves the assignment to FIRSTLINE down so that we do not have
to have multiple copies.

Suggested by Linus.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Apr 16, 2008
1 parent 25dc720 commit 11dc4e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ do
;;
esac
esac
FIRSTLINE=$(head -1 "$dotest/final-commit")

resume=
if test "$interactive" = t
Expand All @@ -376,7 +375,6 @@ do
[aA]*) action=yes interactive= ;;
[nN]*) action=skip ;;
[eE]*) git_editor "$dotest/final-commit"
FIRSTLINE=$(head -1 "$dotest/final-commit")
action=again ;;
[vV]*) action=again
LESS=-S ${PAGER:-less} "$dotest/patch" ;;
Expand All @@ -386,6 +384,7 @@ do
else
action=yes
fi
FIRSTLINE=$(head -1 "$dotest/final-commit")

if test $action = skip
then
Expand Down

0 comments on commit 11dc4e7

Please sign in to comment.