MCPcopy Index your code
hub / github.com/angular/angular / execGitCommand

Function execGitCommand

scripts/compare-main-to-patch.js:46–53  ·  view source on GitHub ↗
(gitCommand)

Source from the content-addressed store, hash-verified

44// Helper methods
45
46function execGitCommand(gitCommand) {
47 const output = execSync(gitCommand, {silent: true});
48 if (output.code !== 0) {
49 console.error(`Error: git command "${gitCommand}" failed: \n\n ${output.stderr}`);
50 process.exit(1);
51 }
52 return output;
53}
54
55function toArray(rawGitCommandOutput) {
56 return rawGitCommandOutput.trim().split('\n');

Callers 1

mainFunction · 0.85

Calls 2

errorMethod · 0.65
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…