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

Function tryWildcardVersionAsDefaultBranch

src/util/git/git-ref-resolver.js:53–54  ·  view source on GitHub ↗
({version, git}: ResolveVersionOptions)

Source from the content-addressed store, hash-verified

51 version.trim() === '' ? git.resolveDefaultBranch() : Promise.resolve(null);
52
53const tryWildcardVersionAsDefaultBranch = ({version, git}: ResolveVersionOptions): Promise<?ResolvedSha> =>
54 version === '*' ? git.resolveDefaultBranch() : Promise.resolve(null);
55
56const tryRef = (refs: GitRefs, ref: string): ?ResolvedSha => {
57 const sha = refs.get(ref);

Callers

nothing calls this directly

Calls 2

resolveDefaultBranchMethod · 0.65
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…