summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/branches_context.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/context/branches_context.go')
-rw-r--r--pkg/gui/context/branches_context.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/gui/context/branches_context.go b/pkg/gui/context/branches_context.go
index e5de639d9..302f0c1d9 100644
--- a/pkg/gui/context/branches_context.go
+++ b/pkg/gui/context/branches_context.go
@@ -65,3 +65,13 @@ func (self *BranchesContext) GetSelectedRefName() string {
return item.RefName()
}
+
+func (self *BranchesContext) GetSelectedDescription() string {
+ item := self.GetSelected()
+
+ if item == nil {
+ return ""
+ }
+
+ return item.Description()
+}