/** * Git utilities for spec-kit * * Provides functions for checking git repository status and * retrieving current branch information. */ /** * Check if the given path is a git repository. * * @param path - Absolute path to check * @returns True if the path contains a .git directory * * @example * ```typescript * if (await isGitRepo('/workspace/project')) { * console.log('This is a git repository'); * } * ``` */ export declare function isGitRepo(path: string): Promise; /** * Get the current git branch name. * * Uses git rev-parse to get the abbreviated reference name of HEAD. * Returns null if not in a git repository or if git fails. * * @param repoPath - Absolute path to the repository root * @returns Current branch name, or null if unavailable * * @example * ```typescript * const branch = await getCurrentBranch('/workspace/project'); * console.log(branch); // '001-my-feature' or 'main' or null * ``` */ export declare function getCurrentBranch(repoPath: string): Promise; //# sourceMappingURL=git.d.ts.map