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

Function gitInit

__tests__/exclude-config.test.ts:109–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 });
108
109 const gitInit = () => {
110 execFileSync('git', ['init', '-q'], { cwd: dir });
111 execFileSync('git', ['add', '-A'], { cwd: dir });
112 execFileSync('git', ['-c', 'user.email=a@b.c', '-c', 'user.name=t', 'commit', '-qm', 'x'], { cwd: dir });
113 };
114
115 it('keeps a TRACKED excluded dir out of the index (git path) — the core fix', () => {
116 mk('app/main.ts');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected