diff mbox series

[v3,23/29] patman: Allow showing a Commit as a string

Message ID 20201030034638.2858999-24-sjg@chromium.org
State Accepted
Commit a12ad7c94064759f5be02b879f3f52ed5111335f
Delegated to: Simon Glass
Headers show
Series patman: Collect review tags and comments from Patchwork | expand

Commit Message

Simon Glass Oct. 30, 2020, 3:46 a.m. UTC
Use the subject of the Commit object when printing it out.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 tools/patman/commit.py | 3 +++
 1 file changed, 3 insertions(+)

Comments

Simon Glass Nov. 3, 2020, 11:02 p.m. UTC | #1
Use the subject of the Commit object when printing it out.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 tools/patman/commit.py | 3 +++
 1 file changed, 3 insertions(+)

Applied to u-boot-dm, thanks!
diff mbox series

Patch

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.