git am/mailinfo: Don't look at in-body headers when rebasing

When we are rebasing we know that the header lines in the
patch are good and that we don't need to pick up any headers
from the body of the patch.

This makes it possible to rebase commits whose commit message
start with "From" or "Date".

Test vectors by Jeff King.

Signed-off-by: Lukas Sandström <luksan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Lukas Sandström
2009-11-20 17:12:47 +01:00
committed by Junio C Hamano
parent 78d553b7d7
commit d25e51596b
16 changed files with 122 additions and 5 deletions

2
t/t5100/msg0015 Normal file
View File

@ -0,0 +1,2 @@
- a list
- of stuff