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 <eric@engestrom.ch> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4651>
This commit is contained in:

committed by
Marge Bot

parent
32451a15ec
commit
57e65cabd4
@@ -67,7 +67,7 @@ class CommitWidget(urwid.Text):
|
|||||||
_selectable = True
|
_selectable = True
|
||||||
|
|
||||||
def __init__(self, ui: 'UI', commit: 'core.Commit'):
|
def __init__(self, ui: 'UI', commit: 'core.Commit'):
|
||||||
super().__init__(commit.description)
|
super().__init__(f'{commit.sha[:10]} {commit.description}')
|
||||||
self.ui = ui
|
self.ui = ui
|
||||||
self.commit = commit
|
self.commit = commit
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user