summaryrefslogtreecommitdiffstats
path: root/pkg/commands/loading_tags.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-09-29 18:38:56 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-09-29 20:48:49 +1000
commite849ca337237f564dd90a09e40b9ca8f9d62352a (patch)
tree423695f332fe8d38683580812395d955d8123fa0 /pkg/commands/loading_tags.go
parent630e4469898cb630c93cd309156c7c90bf2acd75 (diff)
move tags
Diffstat (limited to 'pkg/commands/loading_tags.go')
-rw-r--r--pkg/commands/loading_tags.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/commands/loading_tags.go b/pkg/commands/loading_tags.go
index 95ebb450c..c651d9cf2 100644
--- a/pkg/commands/loading_tags.go
+++ b/pkg/commands/loading_tags.go
@@ -6,6 +6,7 @@ import (
"strconv"
"strings"
+ "github.com/jesseduffield/lazygit/pkg/models"
"github.com/jesseduffield/lazygit/pkg/utils"
)
@@ -19,7 +20,7 @@ func convertToInt(s string) int {
return i
}
-func (c *GitCommand) GetTags() ([]*Tag, error) {
+func (c *GitCommand) GetTags() ([]*models.Tag, error) {
// get remote branches
remoteBranchesStr, err := c.OSCommand.RunCommandWithOutput(`git tag --list`)
if err != nil {
@@ -34,10 +35,10 @@ func (c *GitCommand) GetTags() ([]*Tag, error) {
split := strings.Split(content, "\n")
// first step is to get our remotes from go-git
- tags := make([]*Tag, len(split))
+ tags := make([]*models.Tag, len(split))
for i, tagName := range split {
- tags[i] = &Tag{
+ tags[i] = &models.Tag{
Name: tagName,
}
}