Commit 9140021
authored
fix(diff): implement offset tracking for sequential hunk application (#1493)
- Adjust hunk start positions by cumulative offset to match patch utility behavior
- Add comprehensive tests for offset logic (additions, deletions, mixed, context)
- Ensure unified diff application is robust for multi-hunk scenarios1 parent be3291c commit 9140021
2 files changed
+440
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
150 | 161 | | |
151 | 162 | | |
152 | 163 | | |
| |||
0 commit comments