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

Function makeRepo

__tests__/multi-repo-workspace.test.ts:37–41  ·  view source on GitHub ↗

git init + commit everything currently in `dir` as one repo.

(dir: string)

Source from the content-addressed store, hash-verified

35
36/** git init + commit everything currently in `dir` as one repo. */
37function makeRepo(dir: string): void {
38 git(dir, 'init', '-q');
39 git(dir, 'add', '-A');
40 git(dir, '-c', 'user.email=t@t', '-c', 'user.name=t', 'commit', '-qm', 'init', '--allow-empty');
41}
42
43function write(file: string, content: string): void {
44 fs.mkdirSync(path.dirname(file), { recursive: true });

Callers 1

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected