I'm trying to apply patch generated from some git repository. Patch context line looks like this
else if ( o is Item )
and in my code it looks like this
else if (o is Item)
When I apply patch
$ git apply -v --check --directory=myroot --ignore-space-change --ignore-whitespace ../patches/0003-some-name.patch
it says that
error: while searching for:
and provides the context block which has differences only in spaces mentioned above. When I fix the issue with the spaces the problem goes away. Is there a way to specify that spaces inside of context line can be ignored?