git apply --reject --whitespace=fix mychanges.path
# default behaviour accepts whitespaces, override current config git apply --whitespace=warn file.patch