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

Function StoreResolvedCommits

pkgs/refs/store.go:9–11  ·  view source on GitHub ↗

StoreResolvedCommits stores the resolved commit hashes for later lookup during clone/checkout, so that the exact resolved commit is used instead of re-resolving the branch/tag.

(commits map[string]string)

Source from the content-addressed store, hash-verified

7// during clone/checkout, so that the exact resolved commit is used instead
8// of re-resolving the branch/tag.
9func StoreResolvedCommits(commits map[string]string) {
10 resolvedCommits = commits
11}
12
13// GetResolvedCommit returns the previously resolved commit hash for the
14// given nameVersion, or an empty string if none was stored.

Calls

no outgoing calls