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

Method translateOne

src/models/GitRefSpecSet.js:34–43  ·  view source on GitHub ↗
(remoteRef)

Source from the content-addressed store, hash-verified

32 }
33
34 translateOne(remoteRef) {
35 let result = null
36 for (const rule of this.rules) {
37 const localRef = rule.translate(remoteRef)
38 if (localRef) {
39 result = localRef
40 }
41 }
42 return result
43 }
44
45 localNamespaces() {
46 return this.rules

Callers 1

updateRemoteRefsMethod · 0.80

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected