MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / git

Function git

__tests__/git-ignored-dirs-scope.test.ts:33–35  ·  view source on GitHub ↗
(cwd: string, ...args: string[])

Source from the content-addressed store, hash-verified

31const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
32
33function git(cwd: string, ...args: string[]): string {
34 return execFileSync('git', args, { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] });
35}
36
37function write(file: string, content: string): void {
38 fs.mkdirSync(path.dirname(file), { recursive: true });

Callers 2

makeRepoFunction · 0.70
gitIgnoredFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected