git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Are author names ending with a dot invalid?
@ 2012-05-18  0:14 Felipe Contreras
  2012-05-19  0:23 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Felipe Contreras @ 2012-05-18  0:14 UTC (permalink / raw)
  To: git

Hi,

It looks like authors ending with a dot ('Foo Jr. <foo@bar.com>') are
converted without a dot ('Foo Jr <foo@bar.com>') is that intentional?

Cheers.

-- 
Felipe Contreras

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

* Re: Are author names ending with a dot invalid?
  2012-05-18  0:14 Are author names ending with a dot invalid? Felipe Contreras
@ 2012-05-19  0:23 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2012-05-19  0:23 UTC (permalink / raw)
  To: Felipe Contreras; +Cc: git

On Fri, May 18, 2012 at 02:14:57AM +0200, Felipe Contreras wrote:

> It looks like authors ending with a dot ('Foo Jr. <foo@bar.com>') are
> converted without a dot ('Foo Jr <foo@bar.com>') is that intentional?

I was just digging in this code today, and I noticed the same thing. The
culprit is ident.c:copy, which strips magic characters from the
beginning, end, and middle. Except that the set of magic characters is
different at the edges (see ident.c:crud), and in the middle ("<", ">",
"\n").

This dates all the way back to 6aa33f4 (Abstract out the "name <email>
date" handling of commit-tree.c, 2005-07-12), which in turn was adapting
code from earlier (though it also has the issue).

So I think it's intentional, but I also think it's wrong, and it's
simply that nobody has complained about it, because it's not that
common.

-Peff

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

end of thread, other threads:[~2012-05-19  0:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-18  0:14 Are author names ending with a dot invalid? Felipe Contreras
2012-05-19  0:23 ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).