From 57e65cabd4f030f325fce2ef3e52af77792c4b66 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 11 Mar 2020 15:18:00 +0100 Subject: [PATCH] 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: --- bin/pick/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pick/ui.py b/bin/pick/ui.py index d309c9d..2d7b510 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 -- 2.7.4