(base: string, filePath: string)
| 107 | } |
| 108 | |
| 109 | export function localDiffCommand(base: string, filePath: string): string { |
| 110 | if (!validChangeRef(base)) return ''; |
| 111 | const quote = (value: string) => `'${value.replaceAll("'", "'\\''")}'`; |
| 112 | return `git diff ${quote(base)} -- ${quote(filePath)}`; |
| 113 | } |
no test coverage detected