Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview: repo/index: sort default branch to always be on top

Akshay 608444e7 84b0871b

+6
+6
appview/state/repo.go
··· 94 94 if a.IsDefault { 95 95 return -1 96 96 } 97 + if b.IsDefault { 98 + return 1 99 + } 97 100 if a.Commit != nil { 98 101 if a.Commit.Author.When.Before(b.Commit.Author.When) { 99 102 return 1 ··· 497 494 slices.SortFunc(result.Branches, func(a, b types.Branch) int { 498 495 if a.IsDefault { 499 496 return -1 497 + } 498 + if b.IsDefault { 499 + return 1 500 500 } 501 501 if a.Commit != nil { 502 502 if a.Commit.Author.When.Before(b.Commit.Author.When) {