From b32e92d013f6fe0d97f094c4b1991100d568f980 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sun, 21 Aug 2016 01:07:15 +0200 Subject: remote and repository base on ConfigStore --- config/config.go | 1 + config/refspec.go | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'config') diff --git a/config/config.go b/config/config.go index 6cc9036..b70cebc 100644 --- a/config/config.go +++ b/config/config.go @@ -10,6 +10,7 @@ type ConfigStorage interface { Remote(name string) (*RemoteConfig, error) Remotes() ([]*RemoteConfig, error) SetRemote(*RemoteConfig) error + DeleteRemote(name string) error } type RemoteConfig struct { diff --git a/config/refspec.go b/config/refspec.go index 2fe8d22..e74bf78 100644 --- a/config/refspec.go +++ b/config/refspec.go @@ -108,3 +108,7 @@ func (s RefSpec) Dst(n core.ReferenceName) core.ReferenceName { return core.ReferenceName(dst[0:wd] + match + dst[wd+1:len(dst)]) } + +func (s RefSpec) String() string { + return string(s) +} -- cgit