git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 17:24 UTC

Re: [PATCH] send-email: don't cc *-by lines with '-' prefix

From
Jeff King <peff@peff.net>
Date
Apr 4, 2019, 12:14 UTC
Message-ID
<20190404121416.GC22324@sigill.intra.peff.net>
In-Reply-To
<dd8160f8-0e5e-1024-53c1-1a9f23423af5@rasmusvillemoes.dk>
On Thu, Apr 04, 2019 at 11:42:23AM +0200, Rasmus Villemoes wrote:
Show 10 quoted lines
> My ack for Baruch's original patch, which AFAICT is identical with
> Junio's suggestion, still stands. FWIW, I'm against Joe's suggestion of
> stopping at a line matching /^---/, since it's not unlikely somebody
> does something like
> 
> ---- dmesg output ----
> bla bla
> ----
> 
> in the commit message.

Keep in mind that on the receiving end, we are going to stop reading the commit message at a triple-dash, too, which is done as (from mailinfo.c's patchbreak()):

  /^---( [^\s]|\s*$)/
So it might make sense to use the same rule here. That said:
> Since all lines (except for some of the diff header lines) in the patch
> part begin with space, - or +, insisting on a the line starting with a
> letter should be sufficient for excluding any random Foo-by lines that
> may appear in the patch part.

Yeah, I think this mostly makes it a non-issue, unless we care about efficiency (and I doubt it is even measurable).

Technically you could have other cruft after the diff, too. But I think putting "signed-off-by: somebody" in your email sig is a case of "if it hurts, don't do it".

-Peff
Previous: Junio C Hamano
Message 18 of 18 in “send-email: don't cc *-by lines with '-' prefix”
  1. send-email: don't cc *-by lines with '-' prefixBaruch Siach, Mar 16, 2019
  2. Joe PerchesMar 16, 2019
  3. Baruch SiachMar 16, 2019
  4. Joe PerchesMar 16, 2019
  5. Baruch SiachMar 16, 2019
  6. Joe PerchesMar 16, 2019
  7. Rasmus VillemoesMar 17, 2019
  8. Joe PerchesMar 18, 2019
  9. Junio C HamanoMar 18, 2019
  10. Joe PerchesMar 18, 2019
  11. Baruch SiachApr 4, 2019
  12. Junio C HamanoApr 4, 2019
  13. Baruch SiachApr 4, 2019
  14. Junio C HamanoApr 4, 2019
  15. Rasmus VillemoesApr 4, 2019
  16. Junio C HamanoApr 4, 2019
  17. Junio C HamanoApr 4, 2019
  18. Jeff KingApr 4, 2019

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.