Browse Source
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>maint
Lukas Sandström
15 years ago
committed by
Junio C Hamano
16 changed files with 122 additions and 5 deletions
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
Author: |
||||
Email: |
||||
Subject: check bogus body header (from) |
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700 |
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
Author: A U Thor |
||||
Email: a.u.thor@example.com |
||||
Subject: check bogus body header (from) |
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700 |
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
Author: A U Thor |
||||
Email: a.u.thor@example.com |
||||
Subject: check bogus body header (date) |
||||
Date: bogus |
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
Author: A U Thor |
||||
Email: a.u.thor@example.com |
||||
Subject: check bogus body header (date) |
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700 |
||||
|
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
From: bogosity |
||||
- a list |
||||
- of stuff |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
Date: bogus |
||||
|
||||
and some content |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
--- |
||||
diff --git a/foo b/foo |
||||
index e69de29..d95f3ad 100644 |
||||
--- a/foo |
||||
+++ b/foo |
||||
@@ -0,0 +1 @@ |
||||
+content |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
--- |
||||
diff --git a/foo b/foo |
||||
index e69de29..d95f3ad 100644 |
||||
--- a/foo |
||||
+++ b/foo |
||||
@@ -0,0 +1 @@ |
||||
+content |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
--- |
||||
diff --git a/foo b/foo |
||||
index e69de29..d95f3ad 100644 |
||||
--- a/foo |
||||
+++ b/foo |
||||
@@ -0,0 +1 @@ |
||||
+content |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
--- |
||||
diff --git a/foo b/foo |
||||
index e69de29..d95f3ad 100644 |
||||
--- a/foo |
||||
+++ b/foo |
||||
@@ -0,0 +1 @@ |
||||
+content |
||||
|
Loading…
Reference in new issue