Skip to content

patch: back up a file before it is removed#91

Merged
shannonbooth merged 1 commit into
mainfrom
broken-backup
Jul 25, 2026
Merged

patch: back up a file before it is removed#91
shannonbooth merged 1 commit into
mainfrom
broken-backup

Conversation

@shannonbooth

Copy link
Copy Markdown
Owner

Both paths which remove a file did so without a backup, so -b silently preserved nothing. A backup was only ever taken by write_patched_result_to_file, and only for the output path, which is not reached at all when nothing is written.

Take the backup on both paths while the file is still there.

Both paths which remove a file did so without a backup, so -b silently
preserved nothing. A backup was only ever taken by
write_patched_result_to_file, and only for the output path, which is not
reached at all when nothing is written.

Take the backup on both paths while the file is still there.
@shannonbooth
shannonbooth merged commit 59dbc08 into main Jul 25, 2026
9 checks passed
@shannonbooth
shannonbooth deleted the broken-backup branch July 25, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant