aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-01-14 22:01:44 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 17:18:29 +0100
commit390b13c9ff69f3d42860b5f8109eb134459c40b1 (patch)
treefb2bf13f7395f424e38a6fda61771071eb923948 /cache
parentae2f942ef907161af0aba5f3511db72cf9801dca (diff)
downloadgit-bug-390b13c9ff69f3d42860b5f8109eb134459c40b1.tar.gz
identity: rework mutation
Diffstat (limited to 'cache')
-rw-r--r--cache/identity_cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/identity_cache.go b/cache/identity_cache.go
index 2ae55f2d..f9c928fe 100644
--- a/cache/identity_cache.go
+++ b/cache/identity_cache.go
@@ -21,8 +21,8 @@ func (i *IdentityCache) notifyUpdated() error {
return i.repoCache.identityUpdated(i.Identity.Id())
}
-func (i *IdentityCache) AddVersion(version *identity.Version) error {
- i.Identity.AddVersion(version)
+func (i *IdentityCache) Mutate(f func(identity.VersionMutator) identity.VersionMutator) error {
+ i.Identity.Mutate(f)
return i.notifyUpdated()
}