Skip to content

Commit 11dc4e7

Browse files
committed
git-am: minor cleanup
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 <[email protected]>
1 parent 25dc720 commit 11dc4e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git-am.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ do
355355
;;
356356
esac
357357
esac
358-
FIRSTLINE=$(head -1 "$dotest/final-commit")
359358

360359
resume=
361360
if test "$interactive" = t
@@ -376,7 +375,6 @@ do
376375
[aA]*) action=yes interactive= ;;
377376
[nN]*) action=skip ;;
378377
[eE]*) git_editor "$dotest/final-commit"
379-
FIRSTLINE=$(head -1 "$dotest/final-commit")
380378
action=again ;;
381379
[vV]*) action=again
382380
LESS=-S ${PAGER:-less} "$dotest/patch" ;;
@@ -386,6 +384,7 @@ do
386384
else
387385
action=yes
388386
fi
387+
FIRSTLINE=$(head -1 "$dotest/final-commit")
389388

390389
if test $action = skip
391390
then

0 commit comments

Comments
 (0)