MCPcopy Create free account
hub / github.com/git-bug/git-bug / ClearUserIdentity

Method ClearUserIdentity

cache/repo_cache_common.go:175–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173}
174
175func (c *RepoCache) ClearUserIdentity() error {
176 c.muUserIdentity.Lock()
177 defer c.muUserIdentity.Unlock()
178
179 err := identity.ClearUserIdentity(c.repo)
180 if err != nil {
181 return err
182 }
183
184 c.userIdentityId = ""
185 return nil
186}
187
188func (c *RepoCache) GetUserIdentity() (*IdentityCache, error) {
189 c.muUserIdentity.RLock()

Callers 1

runWipeFunction · 0.80

Calls 2

ClearUserIdentityFunction · 0.92
LockMethod · 0.65

Tested by

no test coverage detected