(rootDir: string, ref: string, path: string)
| 153 | * Returns null if the file does not exist at that ref. |
| 154 | */ |
| 155 | export function readFileAtRef(rootDir: string, ref: string, path: string): string | null { |
| 156 | return tryRunArgs(['git', 'show', `${ref}:${path}`], { cwd: rootDir }); |
| 157 | } |
| 158 | |
| 159 | /** Get commits on the current branch since it diverged from baseBranch */ |
| 160 | export function getBranchCommits( |
no test coverage detected
searching dependent graphs…