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

git-mailinfo '-u' argument should be default.

From
David Woodhouse <dwmw2@infradead.org>
Date
May 12, 2006, 16:46 UTC
Message-ID
<1147452362.2794.452.camel@pmac.infradead.org>
If you apply a patch with 'git-am', it takes the raw content of the
From: header, in whatever character set that happens to be, and puts
that content, untagged, into the commit object. 

That is almost _never_ the right thing to do, surely? Raw data in untagged character sets is marginally better than line noise.

We should default to the '-u' behaviour, which converts to the character set which the git repo is stored in. It's not just for converting to UTF-8, although it looks like it was in the past. Now, however, it converts to the character set defined in the configuration. So even if it's a Luddite who for some reason is sticking with an obsolete character set, it gets that right.

The only option which makes sense _other_ than that would be to just stick the RFC2047-encoded original From: header into the commit, surely?

-- 
dwmw2
Next: David Woodhouse
Message 1 of 8 in “git-mailinfo '-u' argument should be default.”
  1. David WoodhouseMay 12, 2006
  2. Re: git-mailinfo '-u' argument should be default.David Woodhouse, Jan 9, 2007
  3. Johannes SchindelinJan 9, 2007
  4. David WoodhouseJan 9, 2007
  5. Junio C HamanoJan 9, 2007
  6. David WoodhouseJan 9, 2007
  7. Junio C HamanoJan 10, 2007
  8. David WoodhouseJan 10, 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.