git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-mailinfo '-u' argument should be default.
@ 2006-05-12 16:46 David Woodhouse
  2007-01-09 14:03 ` [PATCH] " David Woodhouse
  0 siblings, 1 reply; 8+ messages in thread
From: David Woodhouse @ 2006-05-12 16:46 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-01-10  3:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-12 16:46 git-mailinfo '-u' argument should be default David Woodhouse
2007-01-09 14:03 ` [PATCH] " David Woodhouse
2007-01-09 14:08   ` Johannes Schindelin
2007-01-09 14:21     ` David Woodhouse
2007-01-09 18:46   ` Junio C Hamano
2007-01-09 23:49     ` David Woodhouse
2007-01-10  0:55       ` Junio C Hamano
2007-01-10  3:24         ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).