X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-am.sh;h=52b5669b431140cb44cc65a25ae980f45d70fbe0;hb=ebcffb1d44643bab69671abdf79209489e64dbef;hp=75886a8f2fb0c2244ba921398ae2339dc9ffea26;hpb=141ca95be1a751afe4ac2983593f1f7bcab87173;p=git.git diff --git a/git-am.sh b/git-am.sh index 75886a8f2..52b5669b4 100755 --- a/git-am.sh +++ b/git-am.sh @@ -5,13 +5,13 @@ SUBDIRECTORY_OK=Yes OPTIONS_KEEPDASHDASH= OPTIONS_SPEC="\ -git-am [options] |... +git-am [options] [|...] git-am [options] --resolved git-am [options] --skip -- d,dotest= (removed -- do not use) i,interactive run interactively -b,binary pass --allo-binary-replacement to git-apply +b,binary pass --allow-binary-replacement to git-apply 3,3way allow fall back on 3way merging if needed s,signoff add a Signed-off-by line to the commit message u,utf8 recode into utf8 (default) @@ -30,7 +30,8 @@ set_reflog_action am require_work_tree cd_to_toplevel -git var GIT_COMMITTER_IDENT >/dev/null || exit +git var GIT_COMMITTER_IDENT >/dev/null || + die "You need to set your committer info first" stop_here () { echo "$1" >"$dotest/next" @@ -241,6 +242,7 @@ else : >"$dotest/rebasing" else : >"$dotest/applying" + git update-ref ORIG_HEAD HEAD fi fi @@ -421,7 +423,7 @@ do else action=yes fi - FIRSTLINE=$(head -1 "$dotest/final-commit") + FIRSTLINE=$(sed 1q "$dotest/final-commit") if test $action = skip then