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

Function originUrl

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

Source from the content-addressed store, hash-verified

313}
314
315function originUrl(): string | null {
316 try {
317 const out = execSync("git remote get-url origin", { encoding: "utf-8", timeout: 2000 });
318 return out.trim();
319 } catch {
320 return null;
321 }
322}
323
324/**
325 * Derive a host- and worktree-aware source id for the cwd code corpus.

Callers 3

deriveCodeSourceIdFunction · 0.85
deriveLegacyCodeSourceIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected