From: "Luis R. Rodriguez" <[email protected]>

Add a top_header for cases where a patchset might have a
full header that we may want users to keep around.

Cc: [email protected]
Signed-off-by: Luis R. Rodriguez <[email protected]>
---
 lib/patch.py |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/patch.py b/lib/patch.py
index 4a7578d..e167b4f 100644
--- a/lib/patch.py
+++ b/lib/patch.py
@@ -201,6 +201,7 @@ class PatchSet(object):
 
     # list of Patch objects
     self.items = []
+    self.top_header = ""
 
     self.errors = 0    # fatal parsing errors
     self.warnings = 0  # non-critical warnings
@@ -303,6 +304,7 @@ class PatchSet(object):
       if headscan:
         while not fe.is_empty and not fe.line.startswith("--- "):
             header.append(fe.line)
+            self.top_header += fe.line
             fe.next()
         if fe.is_empty:
             if p == None:
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to