From: Bin Meng Date: Sun, 26 Jun 2016 23:24:28 -0700 Subject: [U-Boot] [PATCH v2 1/5] tools: patman: Use cover_match for 'Cover-letter' In-Reply-To: <1467008672-1116-1-git-send-email-bmeng.cn@gmail.com> References: <1467008672-1116-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1467008672-1116-2-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Like other patman tags, use a new variable cover_match to indicate a match for 'Cover-letter'. Signed-off-by: Bin Meng --- Changes in v2: - New patch to use cover_match for 'Cover-letter' tools/patman/patchstream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 27d031e..2c4efc5 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -150,6 +150,7 @@ class PatchStream: # Handle state transition and skipping blank lines series_tag_match = re_series_tag.match(line) commit_tag_match = re_commit_tag.match(line) + cover_match = re_cover.match(line) cover_cc_match = re_cover_cc.match(line) signoff_match = re_signoff.match(line) tag_match = None @@ -203,7 +204,7 @@ class PatchStream: self.skip_blank = False # Detect the start of a cover letter section - elif re_cover.match(line): + elif cover_match: self.in_section = 'cover' self.skip_blank = False -- 2.7.4