aboutsummaryrefslogtreecommitdiffstats
path: root/cache/repo_cache.go
diff options
context:
space:
mode:
authorSladyn <gunnerforlife00@gmail.com>2019-05-25 15:13:40 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-05-29 22:58:01 +0200
commit2c4c0132bf8c9e9819cc9a76d4a04ed4daeedb3b (patch)
treee8c4e4c0f44fa614c3c8191ebe3d61f9776a7706 /cache/repo_cache.go
parentf01b9bca12cb51f1f8f46b5e58bb3cb4be8126de (diff)
downloadgit-bug-2c4c0132bf8c9e9819cc9a76d4a04ed4daeedb3b.tar.gz
Add GetRemotes functionalities
Diffstat (limited to 'cache/repo_cache.go')
-rw-r--r--cache/repo_cache.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go
index dc1889b2..b3b2ea1e 100644
--- a/cache/repo_cache.go
+++ b/cache/repo_cache.go
@@ -104,11 +104,16 @@ func (c *RepoCache) GetPath() string {
return c.repo.GetPath()
}
-// GetPath returns the path to the repo.
+// GetCoreEditor returns the name of the editor that the user has used to configure git.
func (c *RepoCache) GetCoreEditor() (string, error) {
return c.repo.GetCoreEditor()
}
+// GetRemotes returns the configured remotes repositories.
+func (c *RepoCache) GetRemotes() (map[string]string, error) {
+ return c.repo.GetRemotes()
+}
+
// GetUserName returns the name the the user has used to configure git
func (c *RepoCache) GetUserName() (string, error) {
return c.repo.GetUserName()