MCPcopy Create free account
hub / github.com/celer-pkg/celer / GetResolvedCommit

Function GetResolvedCommit

pkgs/refs/store.go:15–20  ·  view source on GitHub ↗

GetResolvedCommit returns the previously resolved commit hash for the given nameVersion, or an empty string if none was stored.

(nameVersion string)

Source from the content-addressed store, hash-verified

13// GetResolvedCommit returns the previously resolved commit hash for the
14// given nameVersion, or an empty string if none was stored.
15func GetResolvedCommit(nameVersion string) string {
16 if resolvedCommits == nil {
17 return ""
18 }
19 return resolvedCommits[nameVersion]
20}

Callers 2

CloneMethod · 0.92
buildResolvedRefsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected