Monorepo for Tangled
0

Configure Feed

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

appview: repo: update tagmap to work on annotated tags

annotated tags have their own custom hashes, but the "target" of the tag
points to the commit they refer to.

Akshay (Apr 30, 2025, 9:03 PM +0100) 17c676d4 cb7d91bf

+6
+6
appview/state/repo.go
··· 74 74 tagMap := make(map[string][]string) 75 75 for _, tag := range result.Tags { 76 76 hash := tag.Hash 77 + if tag.Tag != nil { 78 + hash = tag.Tag.Target.String() 79 + } 77 80 tagMap[hash] = append(tagMap[hash], tag.Name) 78 81 } 79 82 ··· 189 192 tagMap := make(map[string][]string) 190 193 for _, tag := range result.Tags { 191 194 hash := tag.Hash 195 + if tag.Tag != nil { 196 + hash = tag.Tag.Target.String() 197 + } 192 198 tagMap[hash] = append(tagMap[hash], tag.Name) 193 199 } 194 200