From eaf9f4b784c9831b36c2ae7300710c4505fd9bf0 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Sun, 20 Feb 2022 12:38:41 -0500 Subject: [PATCH] feat(tui): only show branches and tags --- internal/tui/bubbles/git/refs/bubble.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/tui/bubbles/git/refs/bubble.go b/internal/tui/bubbles/git/refs/bubble.go index 53fec666a1aea7797338fdfabd5a7dbf407371f1..6796f0914019a59e7c76ec01e71619a3e2505e82 100644 --- a/internal/tui/bubbles/git/refs/bubble.go +++ b/internal/tui/bubbles/git/refs/bubble.go @@ -131,9 +131,10 @@ func (b *Bubble) updateItems() tea.Cmd { if r.Type() != plumbing.HashReference { continue } - if r.Name().IsTag() { + n := r.Name() + if n.IsTag() { tags = append(tags, item{r}) - } else { + } else if n.IsBranch() { its = append(its, item{r}) } }