Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] t4014: remove Message-Id/timestamp before comparing patches

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:04

Thomas Rast [off-list ref] writes:
+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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help