buroventures-harald-code-core
Version:
Harald Code Core - Core functionality for AI-powered coding assistant
18 lines (17 loc) • 592 B
TypeScript
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Checks if a directory is within a git repository
* @param directory The directory to check
* @returns true if the directory is in a git repository, false otherwise
*/
export declare function isGitRepository(directory: string): boolean;
/**
* Finds the root directory of a git repository
* @param directory Starting directory to search from
* @returns The git repository root path, or null if not in a git repository
*/
export declare function findGitRoot(directory: string): string | null;