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 <gitster@pobox.com>
Junio C Hamano committed
Apr 16, 2008 at 16:46 UTC
11dc4e70c33c2fbbff19014035d3bf624da1902c
1 file changed
+1
-2
git-am.sh
+1
-2
@@ -355,7 +355,6 @@ do
355
;;
356
esac
357
esac
358
- FIRSTLINE=$(head -1 "$dotest/final-commit")
358
359
resume=
360
if test "$interactive" = t
@@ -376,7 +375,6 @@ do
375
[aA]*) action=yes interactive= ;;
376
[nN]*) action=skip ;;
377
[eE]*) git_editor "$dotest/final-commit"
379
- FIRSTLINE=$(head -1 "$dotest/final-commit")
378
action=again ;;
379
[vV]*) action=again
380
LESS=-S ${PAGER:-less} "$dotest/patch" ;;
@@ -386,6 +384,7 @@ do
384
else
385
action=yes
386
fi
387
+ FIRSTLINE=$(head -1 "$dotest/final-commit")
388
389
if test $action = skip
390
then