MCPcopy Create free account
hub / github.com/angular/dev-infra / hasCommit

Method hasCommit

ng-dev/utils/git/git-client.ts:144–148  ·  view source on GitHub ↗

Whether the given branch contains the specified SHA.

(branchName: string, sha: string)

Source from the content-addressed store, hash-verified

142 signal: null,
143 error: missingGitError,
144 };
145 }
146 gitExecutable = this.cachedGitResolution.binPath;
147 }
148
149 const result = spawnSync(gitExecutable, args, {
150 cwd: this.baseDir,
151 stdio: 'pipe',

Callers 2

git-client.spec.tsFile · 0.80
checkFunction · 0.80

Calls 2

runMethod · 0.95
assertValidGitRefFunction · 0.85

Tested by

no test coverage detected