MCPcopy
hub / github.com/colbymchenry/codegraph / addSubmodule

Function addSubmodule

__tests__/worktree-detection.test.ts:301–309  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

299 });
300
301 function addSubmodule(name: string): string {
302 execFileSync(
303 'git',
304 ['-c', 'protocol.file.allow=always', 'submodule', 'add', '-q', subSource, name],
305 { cwd: parent, stdio: ['ignore', 'ignore', 'ignore'] },
306 );
307 git(parent, 'commit', '-q', '-m', 'add submodule');
308 return path.join(parent, name);
309 }
310
311 function addBareGitlink(name: string): string {
312 const dir = path.join(parent, name);

Callers 1

Calls 2

joinMethod · 0.80
gitFunction · 0.70

Tested by

no test coverage detected