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

Re: git format.from (was: 9p: Fix file ID collisions)

From
Jeff King <peff@peff.net>
Date
Sep 24, 2019, 21:36 UTC
Message-ID
<20190924213638.GE20858@sigill.intra.peff.net>
In-Reply-To
<3312839.Zbq2WQg2AT@silver>
On Tue, Sep 24, 2019 at 11:03:38AM +0200, Christian Schoenebeck wrote:
Show 11 quoted lines
> > Yes, the resulting mail would be correct, in the sense that it could be
> > applied just fine by git-am. But I think it would be uglier. IOW, I
> > consider the presence of the in-body From to be a clue that something
> > interesting is going on (like forwarding somebody else's patch). So from
> > my perspective, it would just be useless noise. Other communities may
> > have different opinions, though (I think I have seen some kernel folks
> > always including all of the possible in-body headers, including Date).
> > But it seems like it makes sense to keep both possibilities.
> 
> Exactly, current git behaviour is solely "prettier" (at first thought only 
> though), but does not address anything useful in real life.

I wouldn't agree with that. By being pretty, it also is functionally more useful (I can tell at a glance whether somebody is sending a patch from another author).

Show 23 quoted lines
> Current git behaviour does cause real life problems though: Many email lists 
> are munging emails of patch senders whose domain is configured for requiring 
> domain's emails being DKIM signed and/or being subject to SPF rules (a.k.a 
> DMARC). So original sender's From: header is then automatically replaced by an 
> alias (by e.g. mailman): https://en.wikipedia.org/wiki/DMARC#From:_rewriting
> 
> For instance the email header:
> 
> From: "Bob Bold" <bold@foo.com>
> 
> is automatically replaced by lists by something like
> 
> From: "Bob Bold via Somelist" <somelist@gnu.org>
> 
> And since git currently always drops the From: line from the email's body if
> sender == author, as a consequence maintainers applying patches from such 
> lists, always need to rewrite git history subsequently and have to replace 
> patch author's identity manually for each commit to have their correct, real 
> email address and real name in git history instead of something like
> "Bob Bold via Somelist" <somelist@gnu.org>
> 
> So what do you find "uglier"? I prefer key info not being lost as default 
> behaviour. :-)

Sure, for your list that munges From headers, always including an in-body From is way better. But for those of us _not_ on such lists, I'd much prefer not to force the in-body version on them.

-Peff
Previous: Christian SchoenebeckNext: Junio C Hamano
Message 6 of 7 in “Re: [Qemu-devel] [PATCH v6 0/4] 9p: Fix file ID collisions”
  1. Eric BlakeSep 9, 2019
  2. Jeff KingSep 9, 2019
  3. Christian SchoenebeckSep 23, 2019
  4. Jeff KingSep 23, 2019
  5. git format.from (was: 9p: Fix file ID collisions)Christian Schoenebeck, Sep 24, 2019
  6. Jeff KingSep 24, 2019
  7. Junio C HamanoSep 9, 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.