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

Interface GitRefResolvingInterface

src/util/git/git-ref-resolver.js:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

git.jsFile · 0.65
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

Used in the wild real call sites across dependent graphs

searching dependent graphs…