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

Function addSubmodule

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

Source from the content-addressed store, hash-verified

387 });
388
389 function addSubmodule(name: string): string {
390 execFileSync(
391 'git',
392 ['-c', 'protocol.file.allow=always', 'submodule', 'add', '-q', subSource, name],
393 { cwd: parent, stdio: ['ignore', 'ignore', 'ignore'] },
394 );
395 git(parent, 'commit', '-q', '-m', 'add submodule');
396 return path.join(parent, name);
397 }
398
399 function addBareGitlink(name: string): string {
400 const dir = path.join(parent, name);

Callers 1

Calls 2

gitFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected