From: Eric Engestrom Date: Wed, 11 Mar 2020 14:18:00 +0000 (+0100) Subject: pick-ui: show commit sha in the pick list X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57e65cabd4f030f325fce2ef3e52af77792c4b66;p=mesa.git pick-ui: show commit sha in the pick list Useful to get more context when a manual merge is needed, for instance. Signed-off-by: Eric Engestrom Reviewed-by: Dylan Baker Part-of: --- diff --git a/bin/pick/ui.py b/bin/pick/ui.py index d309c9db883..2d7b510703f 100644 --- a/bin/pick/ui.py +++ b/bin/pick/ui.py @@ -67,7 +67,7 @@ class CommitWidget(urwid.Text): _selectable = True def __init__(self, ui: 'UI', commit: 'core.Commit'): - super().__init__(commit.description) + super().__init__(f'{commit.sha[:10]} {commit.description}') self.ui = ui self.commit = commit