pick-ui: show commit date

With our ff-only merge setup, the commit date ends up being when the
commit actually landed (as opposed to when it was first written).

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12289>
This commit is contained in:
Eric Engestrom
2021-08-09 21:44:21 +01:00
committed by Marge Bot
parent 7ec42b5eda
commit 4128acdee3
2 changed files with 9 additions and 1 deletions

View File

@@ -67,7 +67,7 @@ class CommitWidget(urwid.Text):
def __init__(self, ui: 'UI', commit: 'core.Commit'):
reason = commit.nomination_type.name.ljust(6)
super().__init__(f'{reason} {commit.sha[:10]} {commit.description}')
super().__init__(f'{commit.date()} {reason} {commit.sha[:10]} {commit.description}')
self.ui = ui
self.commit = commit