(contextLines: number)
| 1829 | } |
| 1830 | |
| 1831 | function validatePatchContextLines(contextLines: number): asserts contextLines is 1 | 3 | 10 | 25 | 100 { |
| 1832 | if (!FILE_PATCH_CONTEXT_LINES.has(contextLines)) { |
| 1833 | throw new Error(`Invalid contextLines value: ${contextLines}`) |
| 1834 | } |
| 1835 | } |
| 1836 | |
| 1837 | function getFilePatchPathspecs(filePath: string, oldPath?: string): string[] { |
| 1838 | if (oldPath && oldPath !== filePath) { |
no test coverage detected