1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 22:33:07 +02:00

Revert "Add IsAnnotated field to models.Tag struct"

It seems that `git for-each-ref` is a lot slower than `git tag --list` when
there are thousands of tags, so revert back to the previous method, now that we
no longer use the IsAnnotated field.

This reverts commit b12b1040c3.
This commit is contained in:
Stefan Haller
2025-07-27 18:00:08 +02:00
parent 151e80902e
commit 1c533dcd55
3 changed files with 23 additions and 30 deletions

View File

@ -3,13 +3,9 @@ package models
// Tag : A git tag
type Tag struct {
Name string
// this is either the first line of the message of an annotated tag, or the
// first line of a commit message for a lightweight tag
Message string
// true if this is an annotated tag, false if it's a lightweight tag
IsAnnotated bool
}
func (t *Tag) FullRefName() string {