Describe the user story
When deleting files from a package under pnpm patch it is not desirable to retain the full contents of the deleted file in the resulting patch file created by pnpm patch-commit it wastes repository space and can be confusing when fixing up a patch that failed to apply.
Describe the solution you'd like
Add --irreversible-delete to /packages/plugin-commands-patching/src/patchCommit.ts:64 so that the patches do no retain the full contents of the deleted file.
Describe the drawbacks of your solution
As far as I know, there are no drawbacks. The contents of any deleted file are retained by the package repository.
Describe alternatives you've considered
Manually editing the resulting patch files is finicky and it's easy to break the patches.
Describe the user story
When deleting files from a package under
pnpm patchit is not desirable to retain the full contents of the deleted file in the resulting patch file created bypnpm patch-commitit wastes repository space and can be confusing when fixing up a patch that failed to apply.Describe the solution you'd like
Add
--irreversible-deleteto /packages/plugin-commands-patching/src/patchCommit.ts:64 so that the patches do no retain the full contents of the deleted file.Describe the drawbacks of your solution
As far as I know, there are no drawbacks. The contents of any deleted file are retained by the package repository.
Describe alternatives you've considered
Manually editing the resulting patch files is finicky and it's easy to break the patches.