浏览代码

patman: Allow showing a Commit as a string

Use the subject of the Commit object when printing it out.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 3 年之前
父节点
当前提交
a12ad7c940
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tools/patman/commit.py

+ 3 - 0
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.