On Wed, Nov 18, 2009 at 03:20:48PM +0100, Philip Hofstetter wrote:
It is not quite "anywhere"; extra headers are respected at the very top
of the message body. This is intentional, to allow one to indicate that
a patch you are sending was authored by somebody else.
So the problem is slightly less severe; the body of your commit message
has to _start_ with "From:". Still, it is awfully ugly to hit a parsing
ambiguity like this when you are trying to do something as simple as
rebase.
Some solutions I can think of are:
1. Improve the header-finding heuristic to actually look for something
more sane, like "From:.*<.*@.*>" (I don't recall off the top of my
head which other headers we handle in this position. Probably
Date, too).
2. Give mailinfo a "--strict" mode to indicate that it is directly
parsing the output of format-patch, and not some random email. Use
--strict when invoking "git am" via "git rebase".
As I explained above, there is a reason, but I don't think it's rude to
have either of those lines. You were, after all, writing a commit
message, not an email (and even if you were, it is a failure of the
storage format if it can't represent your data correctly). So I think
git is to blame here.
-Peff
--
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