mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
patman: Avoid duplicate sign-offs
Keep track of all Signed-off-by tags in a commit and silently suppress any duplicates. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
757f64a89b
commit
102061bd8b
3 changed files with 23 additions and 2 deletions
|
@ -29,6 +29,7 @@ class Commit:
|
|||
self.tags = []
|
||||
self.changes = {}
|
||||
self.cc_list = []
|
||||
self.signoff_set = set()
|
||||
self.notes = []
|
||||
|
||||
def AddChange(self, version, info):
|
||||
|
@ -72,3 +73,16 @@ class Commit:
|
|||
cc_list: List of aliases or email addresses
|
||||
"""
|
||||
self.cc_list += cc_list
|
||||
|
||||
def CheckDuplicateSignoff(self, signoff):
|
||||
"""Check a list of signoffs we have send for this patch
|
||||
|
||||
Args:
|
||||
signoff: Signoff line
|
||||
Returns:
|
||||
True if this signoff is new, False if we have already seen it.
|
||||
"""
|
||||
if signoff in self.signoff_set:
|
||||
return False
|
||||
self.signoff_set.add(signoff)
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue