(hash: string, opts?: { cwd?: string })
| 188 | |
| 189 | /** Get files changed in a specific commit */ |
| 190 | export function getFilesChangedInCommit(hash: string, opts?: { cwd?: string }): string[] { |
| 191 | const result = tryRunArgs(['git', 'diff-tree', '--no-commit-id', '--name-only', '-r', hash], opts); |
| 192 | if (!result) return []; |
| 193 | return result.split('\n').filter(Boolean); |
| 194 | } |
| 195 | |
| 196 | /** Get the git status of files in a directory (staged, unstaged, untracked) */ |
| 197 | export function getFileStatuses( |
no test coverage detected
searching dependent graphs…