MCPcopy Create free account
hub / github.com/continuedev/continue / isGitRepo

Function isGitRepo

extensions/cli/src/systemMessage.ts:16–23  ·  view source on GitHub ↗

* Check if current directory is a git repository

()

Source from the content-addressed store, hash-verified

14 * Check if current directory is a git repository
15 */
16function isGitRepo(): boolean {
17 try {
18 execSync("git rev-parse --is-inside-work-tree", { stdio: "ignore" });
19 return true;
20 } catch {
21 return false;
22 }
23}
24
25/**
26 * Get git status

Callers 2

getGitStatusFunction · 0.70
systemMessage.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected