.gitattributes 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Set the default behavior, in case people don't have core.autocrlf set.
  2. * text=auto
  3. # Explicitly declare text files that could be normalized and converted
  4. # to native line endings on checkout. However, as per the policy they're
  5. # supposed to have LF endings on all platforms.
  6. *.[ch] text diff=cpp eol=lf
  7. *.[ch]pp text diff=cpp eol=lf
  8. *.asm text eol=lf
  9. Makefile text eol=lf
  10. *.make text eol=lf
  11. *.mk text eol=lf
  12. *.inc text eol=lf
  13. *.md text eol=lf
  14. *.xml text eol=lf
  15. *.xpm text -diff -merge eol=lf
  16. *.pem text -diff -merge eol=lf
  17. *.cer text -diff -merge eol=lf
  18. *.manifest text eol=lf
  19. *.sh text eol=lf
  20. *.txt text eol=lf
  21. *.html text diff=html eol=lf
  22. *.idl text eol=lf
  23. *.fbp text eol=lf
  24. *.rgs text eol=lf
  25. *.pkgproj text eol=lf
  26. *.S text eol=lf
  27. Sources text eol=lf
  28. # Declare files that will always have LF line endings on checkout.
  29. *.desktop text eol=lf
  30. # Declare files that will always have CRLF line endings on checkout.
  31. *.sln text eol=crlf
  32. *.vcproj text eol=crlf
  33. *.rc text eol=crlf
  34. *.bat text eol=crlf
  35. *.cmd text eol=crlf
  36. # Denote all files that are truly binary and should not be modified.
  37. *.png binary
  38. *.jpg binary
  39. *.pdf binary
  40. *.bmp binary
  41. *.ico binary
  42. *.od[fgpst] binary
  43. *.hc binary
  44. *.icns binary
  45. *.rtf binary
  46. *.bz2 binary
  47. *.pfx binary