patman: Update Commit to include the message

There is in fact a 'msg' member for Commit, set up by the
Patchstream._close_commit() function. Declare it in the docs and set it
to empty when the Commit is created.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-12-27 04:50:46 -07:00
parent 58667e0511
commit 39a4396362

View File

@@ -17,6 +17,7 @@ class Commit:
Variables: Variables:
hash: Commit hash hash: Commit hash
subject: Subject line subject: Subject line
msg: Commit message body (everything after the subject line)
tags: List of maintainer tag strings tags: List of maintainer tag strings
changes: Dict containing a list of changes (single line strings). changes: Dict containing a list of changes (single line strings).
The dict is indexed by change version (an integer) The dict is indexed by change version (an integer)
@@ -35,6 +36,7 @@ class Commit:
def __init__(self, hash): def __init__(self, hash):
self.hash = hash self.hash = hash
self.subject = '' self.subject = ''
self.msg = ''
self.tags = [] self.tags = []
self.changes = {} self.changes = {}
self.cc_list = [] self.cc_list = []