diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-21 01:07:15 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-21 01:07:15 +0200 |
commit | b32e92d013f6fe0d97f094c4b1991100d568f980 (patch) | |
tree | c80e847e3409fe0303a3ebabdf3e2a01c45b37f3 /config | |
parent | c9f0c29f423f9bb26f32d6e8c7098f275171afb9 (diff) | |
download | go-git-b32e92d013f6fe0d97f094c4b1991100d568f980.tar.gz |
remote and repository base on ConfigStore
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) +} |