MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / translate

Method translate

src/models/GitRefSpecSet.js:21–32  ·  view source on GitHub ↗
(remoteRefs)

Source from the content-addressed store, hash-verified

19 }
20
21 translate(remoteRefs) {
22 const result = []
23 for (const rule of this.rules) {
24 for (const remoteRef of remoteRefs) {
25 const localRef = rule.translate(remoteRef)
26 if (localRef) {
27 result.push([remoteRef, localRef])
28 }
29 }
30 }
31 return result
32 }
33
34 translateOne(remoteRef) {
35 let result = null

Callers 1

translateOneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected