Commit 849fed0
committed
fix(vcs): preserve literal => filenames in numstat parsing
Git numstat normalization should only rewrite actual rename syntax, not ordinary filenames that happen to contain `=>`. That keeps per-file VCS stats aligned with status entries for valid literal paths.
Constraint: Rename normalization still needs to cover both plain `old => new` output and brace-form renames
Rejected: Remove normalization entirely | renamed entries would stop matching status paths again
Confidence: high
Scope-risk: narrow
Directive: Treat `=>` as a rename marker only when Git emits its rename formatting, not when it appears inside a literal filename1 parent 4b165a0 commit 849fed0
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
| 825 | + | |
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
| 839 | + | |
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
1231 | 1242 | | |
1232 | 1243 | | |
1233 | 1244 | | |
| |||
0 commit comments