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

Function resolveRefToSha

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

Source from the content-addressed store, hash-verified

264}
265
266function resolveRefToSha(ref: string): string {
267 return execFileSync("git", ["rev-parse", "--verify", ref], {
268 encoding: "utf8",
269 stdio: ["ignore", "pipe", "ignore"],
270 }).trim();
271}
272
273function canResolveRef(ref: string): boolean {
274 try {

Callers 2

canResolveRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected