xref: /trunk/.gitattributes (revision 91144cd0085a7583d2099b982122deb2184ab956)
1*91144cd0SPeter# Patch files must never be end-of-line normalised.
2*91144cd0SPeter#
3*91144cd0SPeter# A patch is compared against its target byte for byte -- tg_ext.mk applies
4*91144cd0SPeter# these with `patch --binary' on Windows -- so a patch whose context lines came
5*91144cd0SPeter# from a CRLF file has to keep them.  Without this, git converts on the way in
6*91144cd0SPeter# or out depending on core.autocrlf, and the patch then fails to apply on some
7*91144cd0SPeter# machines and not others, which is a miserable thing to debug.
8*91144cd0SPeter#
9*91144cd0SPeter# ext_libraries/coinmp/coinmp-1.8.4-v10-sln-paths.patch is the case that
10*91144cd0SPeter# prompted this: it patches a Visual Studio .sln, which is CRLF throughout.
11*91144cd0SPeter# Existing patches are LF-only, so marking them changes none of their bytes.
12*91144cd0SPeter*.patch -text
13*91144cd0SPeter*.diff  -text
14