summaryrefslogtreecommitdiffstats
path: root/tools/patman/commit.py
diff options
context:
space:
mode:
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-11-12 11:14:41 +0100
committerSimon Glass <sjg@chromium.org>2013-11-21 13:35:51 -0700
commit5c8fdd91dcc5c8f7da072d96df965e0399750e07 (patch)
treed9555e43dc59280172aff647f632f0e2f19b827b /tools/patman/commit.py
parentc2e5e802ecb7ab668ce9911b210ed68c804b349f (diff)
downloadblackbird-obmc-uboot-5c8fdd91dcc5c8f7da072d96df965e0399750e07.tar.gz
blackbird-obmc-uboot-5c8fdd91dcc5c8f7da072d96df965e0399750e07.zip
patman: add Commit-notes tag and section
Sometimes a commit should have notes enclosed with it rather than withing the cover letter -- possibly even because there is no cover letter. Add a 'Commit-notes' tag, similar to the 'Series-notes' one; lines between this tag and the next END line are inserted in the patch right after the '---' commit delimiter. Change-Id: I01e99ae125607dc6dec08f3be8a5a0b37f0a483d Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net> Signed-off-by: Simon Glass <sjg@chromium.org> (Updated README)
Diffstat (limited to 'tools/patman/commit.py')
-rw-r--r--tools/patman/commit.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/commit.py b/tools/patman/commit.py
index 900cfb3a5a..89cce7f88a 100644
--- a/tools/patman/commit.py
+++ b/tools/patman/commit.py
@@ -21,6 +21,7 @@ class Commit:
changes: Dict containing a list of changes (single line strings).
The dict is indexed by change version (an integer)
cc_list: List of people to aliases/emails to cc on this commit
+ notes: List of lines in the commit (not series) notes
"""
def __init__(self, hash):
self.hash = hash
@@ -28,6 +29,7 @@ class Commit:
self.tags = []
self.changes = {}
self.cc_list = []
+ self.notes = []
def AddChange(self, version, info):
"""Add a new change line to the change list for a version.
OpenPOWER on IntegriCloud