From: Junio C Hamano Date: Mon, 19 Sep 2011 17:08:11 GMT Subject: Re: [PATCH] t4014: remove Message-Id/timestamp before comparing patches Message-ID: <7v4o08bguc.fsf@alter.siamese.dyndns.org> In-Reply-To: <6b2cb6ebec907342a02d56a36ddc58715efabc00.1316414731.git.trast@student.ethz.ch> Thomas Rast writes: > +strip_msgid () { > + sed 's#\(Message-Id: *\)<[^>]*>#\1#' "$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.