diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-22 10:14:53 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 8da93fd76287d16156308896ef162e9749fcd27f (patch) | |
tree | f1b9222ae61881e0be7c9df644ee21a91f004e3f /pkg/gui/list_context.go | |
parent | 63209ef71e3de50cce815b5982fec5f659f2eb74 (diff) |
add description field to ListItem interface
Diffstat (limited to 'pkg/gui/list_context.go')
-rw-r--r-- | pkg/gui/list_context.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/list_context.go b/pkg/gui/list_context.go index bf6aaeaaf..25b427b25 100644 --- a/pkg/gui/list_context.go +++ b/pkg/gui/list_context.go @@ -33,7 +33,11 @@ type ListContext struct { } type ListItem interface { + // ID is a SHA when the item is a commit, a filename when the item is a file, 'stash@{4}' when it's a stash entry, 'my_branch' when it's a branch ID() string + + // Description is something we would show in a message e.g. '123as14: push blah' for a commit + Description() string } func (lc *ListContext) GetSelectedItem() ListItem { |