aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/bridges.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-06-15 02:33:06 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-06-15 02:33:06 +0200
commitf70e775dbd7c53ebb6e3cd2ec1af8d73d13449b0 (patch)
tree92ac9d1c0b837e0adf2e4728cadd430cc5393a0b /bridge/bridges.go
parentd69dcce806d280ddbd6a4fb17700153bc03da90b (diff)
downloadgit-bug-f70e775dbd7c53ebb6e3cd2ec1af8d73d13449b0.tar.gz
Store bridge type alongside the other params in the config
Diffstat (limited to 'bridge/bridges.go')
-rw-r--r--bridge/bridges.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/bridge/bridges.go b/bridge/bridges.go
index 6cbd13fe..0aa0007f 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 RemoveBridges(repo repository.RepoCommon, name string) error {
+ return core.RemoveBridge(repo, name)
}