summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6326cee)
raw | patch | inline | side by side (parent: 6326cee)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 5 Dec 2007 07:01:30 +0000 (23:01 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 6 Dec 2007 00:27:17 +0000 (16:27 -0800) |
Jeff Garzik noticed that "git am -i" reports the applied patch with
the title before the user edited it. This was confusing.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
the title before the user edited it. This was confusing.
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 5792631d848b0658a6a1a81093ee4eddabf1eea6..44c558c940bd86ce8b4a4ab21d979d0688644fbc 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
unset GITHEAD_$his_tree
}
+reread_subject () {
+ git stripspace <"$1" | sed -e 1q
+}
+
prec=4
dotest=.dotest sign= utf8=t keep= skip= interactive= resolved= binary=
resolvemsg= resume=
[aA]*) action=yes interactive= ;;
[nN]*) action=skip ;;
[eE]*) git_editor "$dotest/final-commit"
+ SUBJECT=$(reread_subject "$dotest/final-commit")
action=again ;;
[vV]*) action=again
LESS=-S ${PAGER:-less} "$dotest/patch" ;;