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

Re: [PATCH 01/10] Add a birdview-on-the-source-code section to the user manual

From
Jeff King <peff@peff.net>
Date
May 15, 2007, 09:57 UTC
Message-ID
<20070515095756.GB18942@coredump.intra.peff.net>
In-Reply-To
<7v3b1ylb48.fsf@assigned-by-dhcp.cox.net>
On Tue, May 15, 2007 at 01:55:19AM -0700, Junio C Hamano wrote:
Show 5 quoted lines
> >> Arguably, git should be generating the full MIME header-set, since
> >> it knows what actual encoding the message is in.
> > I very much agree.
> If the above statement meand git-send-email by "git" I would
> very much agree.

OK, the lack of a MIME-Version is clearly the problem, based on Karl's view of the messages I sent. I agree that git-send-email is the right place to implement this (though the weird partial mime headers are actually an artifact of Bruce's MTA).

Unfortunately, I don't think we have the encoding information any more at that point. We can infer how the patch was generated by looking at the git-config, and that should be right 99% of the time (unless the patches were generated with a different config, either from another repo or before some settings were changed).

Junio, can you confirm my understanding that:
  - if i18n.logOutputEncoding is set, then we are definitely in that
    encoding
  - otherwise, if i18n.commitEncoding is set, we should assume commits are
    in that encoding (which is just a guess, since they may have been
    generated on another config, but it's our best guess)
  - otherwise, assume utf-8
If that is OK, I will work up a patch.

Also Junio, it looks like commit 7cbcf4d5 moved parsing of the --encoding parameter into setup_revisions, but it's still being checked for in cmd_log_init. Can you confirm that the latter is now superfluous and can be removed?

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 11 of 17 in “Re: [PATCH 01/10] Add a birdview-on-the-source-code section to the user manual”
  1. Karl HasselströmMay 14, 2007
  2. J. Bruce FieldsMay 14, 2007
  3. Matthieu MoyMay 14, 2007
  4. Karl HasselströmMay 14, 2007
  5. J. Bruce FieldsMay 15, 2007
  6. Jeff KingMay 15, 2007
  7. Jeffrey C. OllieMay 15, 2007
  8. Jeff KingMay 15, 2007
  9. Karl HasselströmMay 15, 2007
  10. Junio C HamanoMay 15, 2007
  11. Jeff KingMay 15, 2007
  12. Junio C HamanoMay 15, 2007
  13. Jeff KingMay 16, 2007
  14. J. Bruce FieldsMay 15, 2007
  15. Jeff KingMay 15, 2007
  16. Junio C HamanoMay 15, 2007
  17. Jeff KingMay 16, 2007

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.