eaf9f4b784c9831b36c2ae7300710c4505fd9bf0

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

feat(tui): only show branches and tags

Diff

 1diff --git a/internal/tui/bubbles/git/refs/bubble.go b/internal/tui/bubbles/git/refs/bubble.go
 2index 53fec666a1aea7797338fdfabd5a7dbf407371f1..6796f0914019a59e7c76ec01e71619a3e2505e82 100644
 3--- a/internal/tui/bubbles/git/refs/bubble.go
 4+++ b/internal/tui/bubbles/git/refs/bubble.go
 5@@ -131,9 +131,10 @@ func (b *Bubble) updateItems() tea.Cmd {
 6 		if r.Type() != plumbing.HashReference {
 7 			continue
 8 		}
 9-		if r.Name().IsTag() {
10+		n := r.Name()
11+		if n.IsTag() {
12 			tags = append(tags, item{r})
13-		} else {
14+		} else if n.IsBranch() {
15 			its = append(its, item{r})
16 		}
17 	}