patman: Add a tag for when a patch gets added to a series
When a patch is added to a series after the initial version, there are no changes to note except that it is new. This is typically done to suppress the "(no changes in vN)" message. It's also nice to add a change to the cover letter so reviewers know there is an additional patch. Add a tag to automate this process a bit. There are two nits with the current approach: - It favors '-' as a bullet point, but some people may prefer '*' (or something else) - Tags (e.g. 'patman: ' in 'patman: foo bar') are not stripped. They are probably just noise in most series, but they may be useful for treewide series to distinguish 'gpio: frobnicate' from 'reset: frobnicate', so I've left them in. Suggestions for the above appreciated. Suggested-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Douglas Anderson <dianders@chromium.org>
This commit is contained in:

committed by
Simon Glass

parent
b4f73931ed
commit
18de1afd48
@@ -477,6 +477,11 @@ class PatchStream:
|
||||
self.change_version = self._parse_version(value, line)
|
||||
elif name == 'cc':
|
||||
self.commit.add_cc(value.split(','))
|
||||
elif name == 'added-in':
|
||||
version = self._parse_version(value, line)
|
||||
self.commit.add_change(version, '- New')
|
||||
self.series.AddChange(version, None, '- %s' %
|
||||
self.commit.subject)
|
||||
else:
|
||||
self._add_warn('Line %d: Ignoring Commit-%s' %
|
||||
(self.linenum, name))
|
||||
|
Reference in New Issue
Block a user