зеркало из https://github.com/microsoft/git.git
Merge branch 'jc/maint-am-keep'
This commit is contained in:
Коммит
5e2f779cbf
11
git-am.sh
11
git-am.sh
|
@ -577,11 +577,12 @@ do
|
||||||
git cat-file commit "$commit" |
|
git cat-file commit "$commit" |
|
||||||
sed -e '1,/^$/d' >"$dotest/msg-clean"
|
sed -e '1,/^$/d' >"$dotest/msg-clean"
|
||||||
else
|
else
|
||||||
SUBJECT="$(sed -n '/^Subject/ s/Subject: //p' "$dotest/info")"
|
{
|
||||||
case "$keep_subject" in -k) SUBJECT="[PATCH] $SUBJECT" ;; esac
|
sed -n '/^Subject/ s/Subject: //p' "$dotest/info"
|
||||||
|
echo
|
||||||
(printf '%s\n\n' "$SUBJECT"; cat "$dotest/msg") |
|
cat "$dotest/msg"
|
||||||
git stripspace > "$dotest/msg-clean"
|
} |
|
||||||
|
git stripspace > "$dotest/msg-clean"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Загрузка…
Ссылка в новой задаче