diff mbox

[U-Boot,v2,1/5] tools: patman: Use cover_match for 'Cover-letter'

Message ID 1467008672-1116-2-git-send-email-bmeng.cn@gmail.com
State Accepted
Commit e7df218c3b446e02c5549b79dd76b65054d6147d
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng June 27, 2016, 6:24 a.m. UTC
Like other patman tags, use a new variable cover_match to indicate
a match for 'Cover-letter'.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

---

Changes in v2:
- New patch to use cover_match for 'Cover-letter'

 tools/patman/patchstream.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Glass June 29, 2016, 3:27 a.m. UTC | #1
On 26 June 2016 at 23:24, Bin Meng <bmeng.cn@gmail.com> wrote:
> Like other patman tags, use a new variable cover_match to indicate
> a match for 'Cover-letter'.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>
> ---
>
> Changes in v2:
> - New patch to use cover_match for 'Cover-letter'
>
>  tools/patman/patchstream.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass July 3, 2016, 11:26 p.m. UTC | #2
On 28 June 2016 at 21:27, Simon Glass <sjg@chromium.org> wrote:
> On 26 June 2016 at 23:24, Bin Meng <bmeng.cn@gmail.com> wrote:
>> Like other patman tags, use a new variable cover_match to indicate
>> a match for 'Cover-letter'.
>>
>> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>>
>> ---
>>
>> Changes in v2:
>> - New patch to use cover_match for 'Cover-letter'
>>
>>  tools/patman/patchstream.py | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm/next, thanks!
diff mbox

Patch

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