MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / gitSetup

Function gitSetup

test/release-notes.test.ts:22–25  ·  view source on GitHub ↗
(cwd: string, args: string[])

Source from the content-addressed store, hash-verified

20}
21
22function gitSetup(cwd: string, args: string[]): void {
23 const r = spawnSync('git', args, { cwd, encoding: 'utf-8' });
24 if (r.status !== 0) throw new Error(`git ${args.join(' ')} failed: ${r.stderr || r.stdout}`);
25}
26
27function writeAndCommit(repo: string, file: string, content: string, msg: string): void {
28 const fp = path.join(repo, file);

Callers 2

writeAndCommitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected