diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 1 | ||||
-rw-r--r-- | config/refspec.go | 4 |
2 files changed, 5 insertions, 0 deletions
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) +} |