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