MCPcopy
hub / github.com/garrytan/gstack / repoRoot

Function repoRoot

bin/gstack-gbrain-sync.ts:306–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304// ── Helpers ────────────────────────────────────────────────────────────────
305
306function repoRoot(): string | null {
307 try {
308 const out = execSync("git rev-parse --show-toplevel", { encoding: "utf-8", timeout: 2000 });
309 return out.trim();
310 } catch {
311 return null;
312 }
313}
314
315function originUrl(): string | null {
316 try {

Callers 3

runCodeImportFunction · 0.70
runDreamFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected