Commit 91b448c
committed
github actions: Update interdiff for added/deleted file diffs, file modes
Here is a complete summary written by Claude of what's changed:
New features:
- File creation/deletion diffing: When both patches add or delete the same
file, interdiff now diffs the content of those files against each other,
rather than skipping them. In fuzzy mode, these results appear under two
new sections: "ADDED FILE DIFFERENCES" and "DELETED FILE DIFFERENCES".
- File mode support: interdiff now handles file permission changes in
patches, detecting and reporting any permission differences between the
two patches. This even works for patches that only change file
permissions (e.g. making a file executable) with no content changes.
Previously interdiff had no mode diffing at all.
Bug fixes:
- Hunk header parsing: Fixed a bug that could produce wrong output for any
hunk where the before or after side is a single line (e.g. a hunk that
deletes several lines down to one). In unified diff format, the line
count is omitted from the hunk header when it is 1. This case was not
being handled correctly, resulting in uninitialized stack variable usage.
- Stale temporary file cleanup: interdiff now cleans up temporary files
that could be left behind in TMPDIR after processing. The previous
version would also leave behind temporary files for patches that created
or deleted a file, since it skipped those patches entirely without doing
proper cleanup.
- Memory leak: Fixed a memory leak when processing patches that share no
files in common.1 parent b892d89 commit 91b448c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
0 commit comments