Monorepo for Tangled tangled.org

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.

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