diff options
author | Michael Muré <batolettre@gmail.com> | 2019-06-17 14:24:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 14:24:17 +0200 |
commit | 470996a0cef56551262a2fb436b778d8fe4be941 (patch) | |
tree | e133293f9f297747e5f6f1747d3a37ce8e5aff4f /bridge/bridges.go | |
parent | d69dcce806d280ddbd6a4fb17700153bc03da90b (diff) | |
parent | 316b4ea6c241960c7506fc5b4d76a4e31484465c (diff) | |
download | git-bug-470996a0cef56551262a2fb436b778d8fe4be941.tar.gz |
Merge pull request #170 from A-Hilaly/config-file
[bridge] Change bridge name format in the config
Diffstat (limited to 'bridge/bridges.go')
-rw-r--r-- | bridge/bridges.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bridge/bridges.go b/bridge/bridges.go index 6cbd13fe..ce6013e3 100644 --- a/bridge/bridges.go +++ b/bridge/bridges.go @@ -19,10 +19,9 @@ func NewBridge(repo *cache.RepoCache, target string, name string) (*core.Bridge, return core.NewBridge(repo, target, name) } -// Instantiate a new bridge for a repo, from the combined target and name contained -// in the full name -func NewBridgeFromFullName(repo *cache.RepoCache, fullName string) (*core.Bridge, error) { - return core.NewBridgeFromFullName(repo, fullName) +// LoadBridge instantiate a new bridge from a repo configuration +func LoadBridge(repo *cache.RepoCache, name string) (*core.Bridge, error) { + return core.LoadBridge(repo, name) } // Attempt to retrieve a default bridge for the given repo. If zero or multiple @@ -38,6 +37,6 @@ func ConfiguredBridges(repo repository.RepoCommon) ([]string, error) { } // Remove a configured bridge -func RemoveBridges(repo repository.RepoCommon, fullName string) error { - return core.RemoveBridge(repo, fullName) +func RemoveBridge(repo repository.RepoCommon, name string) error { + return core.RemoveBridge(repo, name) } |