MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / findGitRoot

Function findGitRoot

src/extension/sdk/utils.ts:747–749  ·  view source on GitHub ↗
(logger: Logger, folder: string)

Source from the content-addressed store, hash-verified

745}
746
747async function findGitRoot(logger: Logger, folder: string): Promise<string | undefined> {
748 return findRootContaining(folder, ".git", "ANY");
749}
750
751async function findDartSdkRoot(logger: Logger, folder: string): Promise<string | undefined> {
752 const gitRoot = await findGitRoot(logger, folder);

Callers 1

findDartSdkRootFunction · 0.85

Calls 1

findRootContainingFunction · 0.85

Tested by

no test coverage detected