(repositoryRoot: string)
| 45 | } |
| 46 | |
| 47 | async function readStatusEntries(repositoryRoot: string): Promise<GitPorcelainEntry[]> { |
| 48 | const output = await git(repositoryRoot, [ |
| 49 | "status", |
| 50 | "--porcelain=v1", |
| 51 | "-z", |
| 52 | "--untracked-files=all", |
| 53 | ]); |
| 54 | return parseGitPorcelainV1(output); |
| 55 | } |
| 56 | |
| 57 | export async function getGitStatus(cwd: string): Promise<GitStatusResponse> { |
| 58 | const repositoryRoot = await findRepositoryRoot(cwd); |
no test coverage detected