MCPcopy Create free account
hub / github.com/IAmUnbounded/devctx / getRepoRoot

Function getRepoRoot

devctx/src/core/git.ts:40–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40export async function getRepoRoot(): Promise<string> {
41 const root = await git.revparse(["--show-toplevel"]);
42 return root.trim();
43}

Callers 5

watchCommandFunction · 0.90
hookCommandFunction · 0.90
initCommandFunction · 0.90
shareCommandFunction · 0.90
getDevCtxDirFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected