MCPcopy Create free account
hub / github.com/cli/cli / containsCommit

Function containsCommit

evals/src/core/io.ts:68–70  ·  view source on GitHub ↗
(workDir: string, env: NodeJS.ProcessEnv, sha: string)

Source from the content-addressed store, hash-verified

66}
67
68export async function containsCommit(workDir: string, env: NodeJS.ProcessEnv, sha: string): Promise<boolean> {
69 return (await git(workDir, env, "rev-list", "refs/heads/main")).split("\n").includes(sha);
70}
71
72export function redact(text: string, secrets: string[]): string {
73 for (const secret of secrets.filter(Boolean)) {

Callers 2

harness.test.tsFile · 0.85
captureSnapshotFunction · 0.85

Calls 1

gitFunction · 0.85

Tested by

no test coverage detected