I'm trying to figure out why GIT does not apply reverse patch on javascript and ruby files, but does it on php files. My steps are:
...modifying some php, ruby and js files...
git stash
#saving changes into stash
git stash apply
#applying them
git stash show -p | git apply -R
#reverse patching
it works fine and does un-apply my stashed changes, but only for php files, not for ruby or javascript. All files (even php) has CRLF
line endings. When I tried files with LF
line endings, no issues were at all, but I'm still wondering, why it does work only for particular file types in case of CRLF
lines.
Thanks for your help!