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>
Johannes Schindelin committed
Jul 24, 2007 at 01:02 UTC
ca193cf1ad5bf8982db2e42abb2fa713011ee726
1 file changed
+6
git-am.sh
+6
@@ -284,6 +284,12 @@ do
284
git mailinfo $keep $utf8 "$dotest/msg" "$dotest/patch" \
285
<"$dotest/$msgnum" >"$dotest/info" ||
286
stop_here $this
287
+
288
+ # skip pine's internal folder data
289
+ grep '^Author: Mail System Internal Data$' \
290
+ <"$dotest"/info >/dev/null &&
291
+ go_next && continue
292
+
293
test -s $dotest/patch || {
294
echo "Patch is empty. Was it split wrong?"
295
stop_here $this