mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Remove config, make default sort order descending
This commit is contained in:
committed by
Jesse Duffield
parent
472288c81b
commit
94b52af661
@ -46,8 +46,8 @@ func (c *GitCommand) GetTags() ([]*models.Tag, error) {
|
||||
// now lets sort our tags by name numerically
|
||||
re := regexp.MustCompile(semverRegex)
|
||||
|
||||
sortAsc := !c.Config.GetUserConfig().Gui.SortTagsDescending
|
||||
// the reason this is complicated is because we're both sorting alphabetically
|
||||
sortAsc := c.Config.GetUserConfig().Gui.SortTagsAscending
|
||||
// the reason this is complicated is because we're both sorting alphabetically
|
||||
// and when we're dealing with semver strings
|
||||
sort.Slice(tags, func(i, j int) bool {
|
||||
var a, b string
|
||||
|
Reference in New Issue
Block a user