.gitattributes 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Auto detect text files and perform LF normalization
  2. * text=auto
  3. #
  4. # The above will handle all files NOT found below
  5. #
  6. # Code
  7. *.js text eol=lf
  8. *.ts text eol=lf
  9. # Documents
  10. *.bibtex text diff=bibtex
  11. *.doc diff=astextplain
  12. *.DOC diff=astextplain
  13. *.docx diff=astextplain
  14. *.DOCX diff=astextplain
  15. *.dot diff=astextplain
  16. *.DOT diff=astextplain
  17. *.pdf diff=astextplain
  18. *.PDF diff=astextplain
  19. *.rtf diff=astextplain
  20. *.RTF diff=astextplain
  21. *.md text diff=markdown
  22. *.mdx text diff=markdown
  23. *.tex text diff=tex
  24. *.adoc text
  25. *.textile text
  26. *.mustache text
  27. *.csv text
  28. *.tab text
  29. *.tsv text
  30. *.txt text
  31. *.sql text
  32. # Graphics
  33. *.png binary
  34. *.jpg binary
  35. *.jpeg binary
  36. *.gif binary
  37. *.tif binary
  38. *.tiff binary
  39. *.ico binary
  40. *.svg text
  41. *.eps binary
  42. # Scripts
  43. *.bash text eol=lf
  44. *.fish text eol=lf
  45. *.sh text eol=lf
  46. *.zsh text eol=lf
  47. *.bat text eol=crlf
  48. *.cmd text eol=crlf
  49. *.ps1 text eol=crlf
  50. # Serialisation
  51. *.json text
  52. *.toml text
  53. *.xml text
  54. *.yaml text
  55. *.yml text
  56. # Archives
  57. *.7z binary
  58. *.gz binary
  59. *.tar binary
  60. *.tgz binary
  61. *.zip binary
  62. # Text files where line endings should be preserved
  63. *.patch -text
  64. #
  65. # Exclude files from exporting
  66. #
  67. .gitattributes export-ignore
  68. .gitignore export-ignore