MCPcopy
hub / github.com/yarnpkg/yarn / resolveCommit

Method resolveCommit

src/util/git/git-ref-resolver.js:11–11  ·  view source on GitHub ↗
(sha: string)

Source from the content-addressed store, hash-verified

9export interface GitRefResolvingInterface {
10 resolveDefaultBranch(): Promise<ResolvedSha>,
11 resolveCommit(sha: string): Promise<?ResolvedSha>,
12}
13export type GitRefs = Map<string, string>;
14export type ResolveVersionOptions = {

Callers 2

tryVersionAsGitCommitFunction · 0.65
git.jsFile · 0.65

Implementers 2

Gitsrc/util/git.js
GitMock__tests__/util/git/git-ref-resolver.js

Calls

no outgoing calls

Tested by

no test coverage detected