diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-12-03 13:54:03 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-12-03 13:54:03 -0800 |
commit | 78b77c491ff21e27dbaf1381268aeb380f0607b8 (patch) | |
tree | f094544712aeae65ee9ac59ce2650eef740fa7e6 | |
parent | 957f5db74fcf2a00260c8bdef4bf147b1b990914 (diff) | |
parent | c970a6fd0142da3740f0205f16f91d3f2ed7e258 (diff) | |
download | git-78b77c491ff21e27dbaf1381268aeb380f0607b8.tar.gz git-78b77c491ff21e27dbaf1381268aeb380f0607b8.tar.xz |
Merge branch 'jc/maint-am-keep' into maint
* jc/maint-am-keep:
Remove dead code from "git am"
-rwxr-xr-x | git-am.sh | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -577,11 +577,12 @@ do git cat-file commit "$commit" | sed -e '1,/^$/d' >"$dotest/msg-clean" else - SUBJECT="$(sed -n '/^Subject/ s/Subject: //p' "$dotest/info")" - case "$keep_subject" in -k) SUBJECT="[PATCH] $SUBJECT" ;; esac - - (printf '%s\n\n' "$SUBJECT"; cat "$dotest/msg") | - git stripspace > "$dotest/msg-clean" + { + sed -n '/^Subject/ s/Subject: //p' "$dotest/info" + echo + cat "$dotest/msg" + } | + git stripspace > "$dotest/msg-clean" fi ;; esac |