composer-patches
composer-patches copied to clipboard
Add --ignore-whitespace option when patching
I found a case where the plugin fails to patch a file generated with git diff
The git project is https://www.drupal.org/project/nexus And I attach the patch
After some digging I discovered that is a whitespace problem and that adding --ignore-whitespace to the patch command makes the patch to be applied.
My temporary solution was to generate the patch with diff instead of git
Can we add that option by default?
Or at least configurable like the patchlevel
Thank you for such a great project :)
+1 for this
would be a decent default value 👍
I've created #370 which implements this as a config option you can add to your composer.json.
See #370 -- IMO, just fix the patch if it's causing issues.