I am trying to apply a few patches to my repo, and getting message patch does not apply
unless I specify params --ignore-space-change --ignore-whitespace
Aha! Looks like I've found the reason. The repository uses CRLF line endings, but format-patch creates patch files with LF's. When I create a repo from scratch with autocrlf=false and make the same experiment, I have the same problem. (looks like a bug in Git)
Any advise how to fix this?
UPD my solution was to create a fresh repository with autocrlf=true and re-import all changes from both repositories into it.