Use an arrow label for renamed files so static output keeps important path metadata.
(file: DiffFile)
| 277 | |
| 278 | /** Use an arrow label for renamed files so static output keeps important path metadata. */ |
| 279 | function fileDisplayPath(file: DiffFile) { |
| 280 | const previousPath = file.previousPath ?? file.metadata.prevName; |
| 281 | return previousPath && previousPath !== file.path |
| 282 | ? `${sanitizeTerminalLine(previousPath)} → ${sanitizeTerminalLine(file.path)}` |
| 283 | : sanitizeTerminalLine(file.path); |
| 284 | } |
| 285 | |
| 286 | function fileModeText(file: DiffFile) { |
| 287 | if ( |
no test coverage detected