mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
tools: patman: Use cover_match for 'Cover-letter'
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> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -150,6 +150,7 @@ class PatchStream:
|
|||||||
# Handle state transition and skipping blank lines
|
# Handle state transition and skipping blank lines
|
||||||
series_tag_match = re_series_tag.match(line)
|
series_tag_match = re_series_tag.match(line)
|
||||||
commit_tag_match = re_commit_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)
|
cover_cc_match = re_cover_cc.match(line)
|
||||||
signoff_match = re_signoff.match(line)
|
signoff_match = re_signoff.match(line)
|
||||||
tag_match = None
|
tag_match = None
|
||||||
@@ -203,7 +204,7 @@ class PatchStream:
|
|||||||
self.skip_blank = False
|
self.skip_blank = False
|
||||||
|
|
||||||
# Detect the start of a cover letter section
|
# Detect the start of a cover letter section
|
||||||
elif re_cover.match(line):
|
elif cover_match:
|
||||||
self.in_section = 'cover'
|
self.in_section = 'cover'
|
||||||
self.skip_blank = False
|
self.skip_blank = False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user