Re: [PATCH] t4014: remove Message-Id/timestamp before comparing patches
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 19, 2011, 17:08 UTC
- Message-ID
- <7v4o08bguc.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <6b2cb6ebec907342a02d56a36ddc58715efabc00.1316414731.git.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
Show 5 quoted lines
> +strip_msgid () {
> + sed 's#\(Message-Id: *\)<[^>]*>#\1<MESSAGE@ID>#' "$1" >"$1+" &&
> + mv "$1+" "$1"
> +}
> +As this is munging the contents of the line, if future versions of format-patch start coloring the message ID values for some mistake, the test using strip_msgid won't catch them anyway, so I'll amend the stripping to actually strip the message id, like this:
sed '/^Message-Id: /d' <"$1" >"$1+"
before applying.
Thanks.