diff options
Diffstat (limited to 'cache/repo_cache.go')
-rw-r--r-- | cache/repo_cache.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go index ec4cf436..90a489c8 100644 --- a/cache/repo_cache.go +++ b/cache/repo_cache.go @@ -877,6 +877,10 @@ func (c *RepoCache) GetUserIdentity() (*IdentityCache, error) { return cached, nil } +func (c *RepoCache) IsUserIdentitySet() (bool, error) { + return identity.IsUserIdentitySet(c.repo) +} + // NewIdentity create a new identity // The new identity is written in the repository (commit) func (c *RepoCache) NewIdentity(name string, email string) (*IdentityCache, error) { |