11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
/**
|
|
* Check if the directory is likely a valid Git repository root or subdirectory
|
|
*
|
|
* 检查目录是否为有效的 Git 仓库根目录或子目录
|
|
*
|
|
* @param cwd The directory to check.
|
|
*
|
|
* 要检查的目录
|
|
*/
|
|
export declare const isGitRepo: (cwd: string) => boolean;
|