diff options
author | Simon Glass | 2020-10-29 21:46:32 -0600 |
---|---|---|
committer | Simon Glass | 2020-11-05 09:11:31 -0700 |
commit | a12ad7c94064759f5be02b879f3f52ed5111335f (patch) | |
tree | ae5efb5c217448dac600881373bc33baa12857b5 /tools/patman/commit.py | |
parent | b5e188131f048ad57420545c7e867e80d60b835b (diff) |
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>
Diffstat (limited to 'tools/patman/commit.py')
-rw-r--r-- | tools/patman/commit.py | 3 |
1 files changed, 3 insertions, 0 deletions
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. |