MCPcopy Index your code
hub / github.com/git-bug/git-bug / Clear

Function Clear

commands/select/select.go:111–114  ·  view source on GitHub ↗

Clear will clear the selected entity, if any

(repo *cache.RepoCache, namespace string)

Source from the content-addressed store, hash-verified

109
110// Clear will clear the selected entity, if any
111func Clear(repo *cache.RepoCache, namespace string) error {
112 filename := selectFileName(namespace)
113 return repo.LocalStorage().Remove(filename)
114}
115
116func selected[CacheT cache.CacheEntity](repo *cache.RepoCache, resolver Resolver[CacheT], namespace string) (*CacheT, error) {
117 filename := selectFileName(namespace)

Callers 2

TestSelectFunction · 0.85
ResolveFunction · 0.85

Calls 3

selectFileNameFunction · 0.85
RemoveMethod · 0.65
LocalStorageMethod · 0.65

Tested by 1

TestSelectFunction · 0.68