MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / canResolveRef

Function canResolveRef

packages/cli/src/git.ts:273–280  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

271}
272
273function canResolveRef(ref: string): boolean {
274 try {
275 resolveRefToSha(ref);
276 return true;
277 } catch {
278 return false;
279 }
280}
281
282function resolveMergeBaseBetween(left: string, right: string): string {
283 return execFileSync("git", ["merge-base", left, right], {

Callers 1

resolveScopeFunction · 0.85

Calls 1

resolveRefToShaFunction · 0.85

Tested by

no test coverage detected