MCPcopy Create free account
hub / github.com/entireio/git-sync / bridgeScope

Function bridgeScope

client.go:219–233  ·  view source on GitHub ↗
(scope RefScope)

Source from the content-addressed store, hash-verified

217}
218
219func bridgeScope(scope RefScope) internalbridge.RefScope {
220 mappings := make([]internalbridge.RefMapping, 0, len(scope.Mappings))
221 for _, mapping := range scope.Mappings {
222 mappings = append(mappings, internalbridge.RefMapping{
223 Source: mapping.Source,
224 Target: mapping.Target,
225 })
226 }
227 return internalbridge.RefScope{
228 Branches: append([]string(nil), scope.Branches...),
229 Mappings: mappings,
230 AllRefs: scope.AllRefs,
231 ExcludeRefPrefixes: append([]string(nil), scope.ExcludeRefPrefixes...),
232 }
233}
234
235func bridgePolicy(policy SyncPolicy) internalbridge.SyncPolicy {
236 return internalbridge.SyncPolicy{

Callers 1

buildSyncConfigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected