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

Method getGitRoot

extensions/vscode/src/util/ideUtils.ts:586–589  ·  view source on GitHub ↗
(forDirectory: vscode.Uri)

Source from the content-addressed store, hash-verified

584 }
585
586 async getGitRoot(forDirectory: vscode.Uri): Promise<vscode.Uri | undefined> {
587 const repo = await this.getRepo(forDirectory);
588 return repo?.rootUri;
589 }
590
591 async getBranch(forDirectory: vscode.Uri) {
592 const repo = await this.getRepo(forDirectory);

Callers 1

getGitRootPathMethod · 0.80

Calls 1

getRepoMethod · 0.95

Tested by

no test coverage detected