[PATCH v3 23/29] patman: Allow showing a Commit as a string
Simon Glass
sjg at chromium.org
Fri Oct 30 04:46:32 CET 2020
Use the subject of the Commit object when printing it out.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
tools/patman/commit.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/patman/commit.py b/tools/patman/commit.py
index e49bf87dfc8..5bf2b940299 100644
--- a/tools/patman/commit.py
+++ b/tools/patman/commit.py
@@ -41,6 +41,9 @@ class Commit:
self.rtags = collections.defaultdict(set)
self.warn = []
+ def __str__(self):
+ return self.subject
+
def AddChange(self, version, info):
"""Add a new change line to the change list for a version.
--
2.29.1.341.ge80a0c044ae-goog
More information about the U-Boot
mailing list