Re: email address handling

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Theodore Tso <tytso@...>, Junio C Hamano <gitster@...>, <git@...>
Date: Friday, August 1, 2008 - 7:16 pm

On Fri, 1 Aug 2008, Linus Torvalds wrote:

..and I really think that the

	"=?utf-8?q?S=2E=C3=87a=C4=9Flar?= Onur" <caglar@pardus.org.tr>

example should be the one that makes you say "Ok, you're right".

The undeniable fact is, if we kept things in that format, even your broken 
mailer wouldn't have corrupted it. You could cut-and-paste things, and 
they's show up correctly at the other end, regardless of whether the 
problem is with your mailer or with the cut-and-paste, or anything else.

So clearly, "=?utf-8?q?S=2E=C3=87a=C4=9Flar?= Onur" _must_ be the superior 
format that git should have used, no?

Because clearly that is the most automation-friendly thing that _never_ 
requires anybody to think at all, and you can cut-and-paste it between 
programs without ever having to worry about anything at all. No special 
characters, no special meanings, no need to worry about limitations of 
implementation.

So the fact that git completely FUCKS IT UP, and when you do 'git log' git 
will have corrupted this to

	Author: S.Çağlar Onur <caglar@pardus.org.tr>

is clearly git doing the wrong thing. Right?

WRONG.

The fact is, git does the right thing. And yes, it means that you cannot 
just blindly cut-and-paste. And yes, it means that your mailer actually 
has to work right for you to even -see- the right email address. And yes, 
it means that any number of things can screw up, and corrupt it.

But it is STILL the right thing. Because what matters more than your 
ability to cut-and-paste or anything like that is  the fact that we should 
make things look sane.

The thing is, you can actually get git to output the crazy names. Just do

	git show --pretty=email 37a4c940749670671adab211a2d9c9fed9f3f757

and now you get the email-prettified thing for at least the author. No, 
git won't corrupt the actual message, so the Signed-off-by: lines will 
still show Çağlar's first name, but you can actually get back that odd 
format.

(In fact, --pretty=email will do it as

	From: =?utf-8?q?S.=C3=87a=C4=9Flar=20Onur?= <caglar@pardus.org.tr>

which is admittedy _even_uglier_, but whatever.. The difference between 
really f*cking ugly and really f*cking uglier is not really relevant).

			Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
email address handling, Andrew Morton, (Thu Jul 31, 10:40 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 3:34 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 3:45 pm)
Re: email address handling, Junio C Hamano, (Fri Aug 1, 4:00 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 4:14 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 3:56 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 4:11 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 4:17 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 4:24 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 4:40 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 4:54 pm)
Re: email address handling, Junio C Hamano, (Fri Aug 1, 5:50 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 5:58 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 6:23 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 6:41 pm)
Re: email address handling, Theodore Tso, (Fri Aug 1, 6:15 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 6:27 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 6:39 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 6:49 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 6:55 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 7:16 pm)
Re: email address handling, Johannes Schindelin, (Sat Aug 2, 7:31 am)
Re: email address handling, Linus Torvalds, (Sat Aug 2, 12:20 pm)
Re: email address handling, Junio C Hamano, (Sat Aug 2, 1:50 pm)
Re: email address handling, Junio C Hamano, (Sat Aug 2, 12:40 pm)
Re: email address handling, Junio C Hamano, (Sat Aug 2, 12:42 pm)
Re: email address handling, Junio C Hamano, (Sat Aug 2, 12:36 pm)
Re: email address handling, Johannes Schindelin, (Sat Aug 2, 12:59 pm)
Re: email address handling, Linus Torvalds, (Sat Aug 2, 1:08 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 6:34 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 6:49 pm)
Re: email address handling, Karl , (Mon Aug 4, 4:14 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 6:44 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 6:52 pm)
Re: email address handling, Andrew Morton, (Fri Aug 1, 7:00 pm)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 5:12 pm)
Re: email address handling, Johannes Schindelin, (Fri Aug 1, 5:16 pm)
Re: email address handling, Junio C Hamano, (Fri Aug 1, 5:25 pm)
Re: email address handling, Johannes Schindelin, (Sat Aug 2, 7:03 am)
Re: email address handling, Linus Torvalds, (Fri Aug 1, 4:41 pm)
Re: email address handling, Junio C Hamano, (Fri Aug 1, 4:07 pm)