MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / git

Function git

scripts/check-generated-artifact-diff.cjs:13–19  ·  view source on GitHub ↗
(args, opts = {})

Source from the content-addressed store, hash-verified

11}
12
13function git(args, opts = {}) {
14 const result = spawnSync('git', args, { encoding: 'utf8', ...opts });
15 if (result.status !== 0) {
16 throw new Error(result.stderr || result.stdout || `git ${args.join(' ')} failed`);
17 }
18 return result.stdout;
19}
20
21const root = git(['rev-parse', '--show-toplevel']).trim();
22

Callers 2

changedFilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected