зеркало из https://github.com/microsoft/git.git
git am: skip pine's internal folder data
Test if the From: line contains "Mail System Internal Data" and if it is, skip this mail. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
d1cc130a5e
Коммит
ca193cf1ad
|
@ -284,6 +284,12 @@ do
|
||||||
git mailinfo $keep $utf8 "$dotest/msg" "$dotest/patch" \
|
git mailinfo $keep $utf8 "$dotest/msg" "$dotest/patch" \
|
||||||
<"$dotest/$msgnum" >"$dotest/info" ||
|
<"$dotest/$msgnum" >"$dotest/info" ||
|
||||||
stop_here $this
|
stop_here $this
|
||||||
|
|
||||||
|
# skip pine's internal folder data
|
||||||
|
grep '^Author: Mail System Internal Data$' \
|
||||||
|
<"$dotest"/info >/dev/null &&
|
||||||
|
go_next && continue
|
||||||
|
|
||||||
test -s $dotest/patch || {
|
test -s $dotest/patch || {
|
||||||
echo "Patch is empty. Was it split wrong?"
|
echo "Patch is empty. Was it split wrong?"
|
||||||
stop_here $this
|
stop_here $this
|
||||||
|
|
Загрузка…
Ссылка в новой задаче