git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Thomas RastNext: Jeff King
Message 2 of 5 in “t4014: remove Message-Id/timestamp before comparing patches”
  1. t4014: remove Message-Id/timestamp before comparing patchesThomas Rast, Sep 19, 2011
  2. Junio C HamanoSep 19, 2011
  3. Jeff KingSep 19, 2011
  4. Junio C HamanoSep 19, 2011
  5. Thomas RastSep 20, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.