summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25dc720)
raw | patch | inline | side by side (parent: 25dc720)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Apr 2008 23:46:26 +0000 (16:46 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Apr 2008 23:46:26 +0000 (16:46 -0700) |
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>
to have multiple copies.
Suggested by Linus.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh | patch | blob | history |
diff --git a/git-am.sh b/git-am.sh
index 0f05a2cfe301126a5390b3886f054f23c803e91c..6be33d9ddbb27c5085d677855ad6c6c555b82805 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
;;
esac
esac
- FIRSTLINE=$(head -1 "$dotest/final-commit")
resume=
if test "$interactive" = t
[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" ;;
else
action=yes
fi
+ FIRSTLINE=$(head -1 "$dotest/final-commit")
if test $action = skip
then