mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
patman: Convert camel case in commit.py
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -180,7 +180,7 @@ class PatchStream:
|
||||
who (str): Person who gave that rtag, e.g.
|
||||
'Fred Bloggs <fred@bloggs.org>'
|
||||
"""
|
||||
self.commit.AddRtag(rtag_type, who)
|
||||
self.commit.add_rtag(rtag_type, who)
|
||||
|
||||
def _close_commit(self):
|
||||
"""Save the current commit into our commit list, and reset our state"""
|
||||
@@ -230,7 +230,7 @@ class PatchStream:
|
||||
elif self.in_change == 'Cover':
|
||||
self.series.AddChange(self.change_version, None, change)
|
||||
elif self.in_change == 'Commit':
|
||||
self.commit.AddChange(self.change_version, change)
|
||||
self.commit.add_change(self.change_version, change)
|
||||
self.change_lines = []
|
||||
|
||||
def _finalise_snippet(self):
|
||||
@@ -494,14 +494,14 @@ class PatchStream:
|
||||
who.find(os.getenv('USER') + '@') != -1):
|
||||
self._add_warn("Ignoring '%s'" % line)
|
||||
elif rtag_type == 'Patch-cc':
|
||||
self.commit.AddCc(who.split(','))
|
||||
self.commit.add_cc(who.split(','))
|
||||
else:
|
||||
out = [line]
|
||||
|
||||
# Suppress duplicate signoffs
|
||||
elif signoff_match:
|
||||
if (self.is_log or not self.commit or
|
||||
self.commit.CheckDuplicateSignoff(signoff_match.group(1))):
|
||||
self.commit.check_duplicate_signoff(signoff_match.group(1))):
|
||||
out = [line]
|
||||
|
||||
# Well that means this is an ordinary line
|
||||
|
Reference in New Issue
Block a user