Re: git-mailinfo doesn't stop parsing at the end of the header

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Philip Hofstetter
Date: Wednesday, November 18, 2009 - 12:57 pm

Hello,

On Wed, Nov 18, 2009 at 6:24 PM, Jeff King <peff@peff.net> wrote:


agreed, though it's not that bad: when learning git, you will be
confronted with the fact that the commit message has a few things that
are special (well. it's doesn't break git, but the first line should
be < 56 chars in length for example).

Not being able to have From: lines in them that are not describing an
author would then just be one of them.


This is a very good point. I didn't quite think about that.


I would leave that to the tool that does the import. Probably it would
have to munge it. Yes.

I DO see though that implementing the check at commit time would lead
to problems popping up at other places.


can't you? IMHO it would just attribute the commit to foo@example.com
which can be an equally bad, if not worse thing (I'm saying that
without the needed knowledge about git internals to really be sure, so
take this with a grain of salt)

I just have a bad feeling about trying out heuristics to see whether
thing thing after from: is an email address or not as email addresses
are notoriously hard to detect.

Typing a commit message and applying a patch from an email should be
separate things and should be handled separately. Currently they are
not and this is what's causing the problem in the first place.

Maybe that --strict thing is actually a good thing in the long run,
even though I don't quite like it either :-)

Interesting problem to have though.

Philip
--
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:
git-mailinfo doesn't stop parsing at the end of the header, Philip Hofstetter, (Wed Nov 18, 7:20 am)
Re: git-mailinfo doesn't stop parsing at the end of the header, Philip Hofstetter, (Wed Nov 18, 10:11 am)
Re: git-mailinfo doesn't stop parsing at the end of the header, Philip Hofstetter, (Wed Nov 18, 12:57 pm)
[PATCH] git am/mailinfo: Don't look at in-body headers whe ..., =?UTF-8?B?THVrYXMgU2 ..., (Wed Nov 18, 3:45 pm)
Re: [PATCH] git am/mailinfo: Don't look at in-body headers ..., Philip Hofstetter, (Wed Nov 18, 4:47 pm)
[PATCH v2] git am/mailinfo: Don't look at in-body headers ..., =?ISO-8859-1?Q?Lukas ..., (Thu Nov 19, 1:51 am)
[PATCH] git am/mailinfo: Don't look at in-body headers whe ..., =?UTF-8?B?THVrYXMgU2 ..., (Fri Nov 20, 9:12 am)