"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
+ "go.stargrave.org/sgblog"
)
type TopicsCache map[string][]plumbing.Hash
if err != nil {
break
}
- for _, topic := range parseTopics(getNote(topicsTree, commit.Hash)) {
+ for _, topic := range sgblog.ParseTopics(sgblog.GetNote(repo, topicsTree, commit.Hash)) {
cache[topic] = append(cache[topic], commit.Hash)
}
}