.gitattributes 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. # Common settings that generally should always be used with your language specific settings
  2. # Auto detect text files and perform LF normalization
  3. # https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
  4. * text=auto
  5. #
  6. # The above will handle all files NOT found below
  7. #
  8. # Documents
  9. *.bibtex text diff=bibtex
  10. *.doc diff=astextplain
  11. *.DOC diff=astextplain
  12. *.docx diff=astextplain
  13. *.DOCX diff=astextplain
  14. *.dot diff=astextplain
  15. *.DOT diff=astextplain
  16. *.pdf diff=astextplain
  17. *.PDF diff=astextplain
  18. *.rtf diff=astextplain
  19. *.RTF diff=astextplain
  20. *.md text
  21. *.tex text diff=tex
  22. *.adoc text
  23. *.textile text
  24. *.mustache text
  25. *.csv text
  26. *.tab text
  27. *.tsv text
  28. *.txt text
  29. *.sql text
  30. # Graphics
  31. *.png binary
  32. *.jpg binary
  33. *.jpeg binary
  34. *.gif binary
  35. *.tif binary
  36. *.tiff binary
  37. *.ico binary
  38. # SVG treated as an asset (binary) by default.
  39. *.svg text
  40. # If you want to treat it as binary,
  41. # use the following line instead.
  42. # *.svg binary
  43. *.eps binary
  44. # Scripts
  45. *.bash text eol=lf
  46. *.fish text eol=lf
  47. *.sh text eol=lf
  48. # These are explicitly windows files and should use crlf
  49. *.bat text eol=crlf
  50. *.cmd text eol=crlf
  51. *.ps1 text eol=crlf
  52. # Serialisation
  53. *.json text
  54. *.toml text
  55. *.xml text
  56. *.yaml text
  57. *.yml text
  58. # Archives
  59. *.7z binary
  60. *.gz binary
  61. *.tar binary
  62. *.tgz binary
  63. *.zip binary
  64. # Text files where line endings should be preserved
  65. *.patch -text
  66. #
  67. # Exclude files from exporting
  68. #
  69. .gitattributes export-ignore
  70. .gitignore export-ignore
  71. .gitkeep export-ignore
  72. # Java sources
  73. *.java text diff=java
  74. *.gradle text diff=java
  75. *.gradle.kts text diff=java
  76. # These files are text and should be normalized (Convert crlf => lf)
  77. *.css text diff=css
  78. *.df text
  79. *.htm text diff=html
  80. *.html text diff=html
  81. *.js text
  82. *.jsp text
  83. *.jspf text
  84. *.jspx text
  85. *.properties text
  86. *.tld text
  87. *.tag text
  88. *.tagx text
  89. *.xml text
  90. # These files are binary and should be left untouched
  91. # (binary is a macro for -text -diff)
  92. *.class binary
  93. *.dll binary
  94. *.ear binary
  95. *.jar binary
  96. *.so binary
  97. *.war binary
  98. *.jks binary
  99. # Basic .gitattributes for a python repo.
  100. # Source files
  101. # ============
  102. *.pxd text diff=python
  103. *.py text diff=python
  104. *.py3 text diff=python
  105. *.pyw text diff=python
  106. *.pyx text diff=python
  107. *.pyz text diff=python
  108. *.pyi text diff=python
  109. # Binary files
  110. # ============
  111. *.db binary
  112. *.p binary
  113. *.pkl binary
  114. *.pickle binary
  115. *.pyc binary
  116. *.pyd binary
  117. *.pyo binary
  118. # Jupyter notebook
  119. *.ipynb text
  120. # Note: .db, .p, and .pkl files are associated
  121. # with the python modules ``pickle``, ``dbm.*``,
  122. # ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
  123. # (among others).
  124. ## GITATTRIBUTES FOR WEB PROJECTS
  125. #
  126. # These settings are for any web project.
  127. #
  128. # Details per file setting:
  129. # text These files should be normalized (i.e. convert CRLF to LF).
  130. # binary These files are binary and should be left untouched.
  131. #
  132. # Note that binary is a macro for -text -diff.
  133. ######################################################################
  134. # Auto detect
  135. ## Handle line endings automatically for files detected as
  136. ## text and leave all files detected as binary untouched.
  137. ## This will handle all files NOT defined below.
  138. * text=auto
  139. # Source code
  140. *.bash text eol=lf
  141. *.bat text eol=crlf
  142. *.cmd text eol=crlf
  143. *.coffee text
  144. *.css text
  145. *.htm text diff=html
  146. *.html text diff=html
  147. *.inc text
  148. *.ini text
  149. *.js text
  150. *.json text
  151. *.jsx text
  152. *.less text
  153. *.ls text
  154. *.map text -diff
  155. *.od text
  156. *.onlydata text
  157. *.php text diff=php
  158. *.pl text
  159. *.ps1 text eol=crlf
  160. *.py text diff=python
  161. *.rb text diff=ruby
  162. *.sass text
  163. *.scm text
  164. *.scss text diff=css
  165. *.sh text eol=lf
  166. *.sql text
  167. *.styl text
  168. *.tag text
  169. *.ts text
  170. *.tsx text
  171. *.xml text
  172. *.xhtml text diff=html
  173. # Docker
  174. Dockerfile text
  175. # Documentation
  176. *.ipynb text
  177. *.markdown text
  178. *.md text
  179. *.mdwn text
  180. *.mdown text
  181. *.mkd text
  182. *.mkdn text
  183. *.mdtxt text
  184. *.mdtext text
  185. *.txt text
  186. AUTHORS text
  187. CHANGELOG text
  188. CHANGES text
  189. CONTRIBUTING text
  190. COPYING text
  191. copyright text
  192. *COPYRIGHT* text
  193. INSTALL text
  194. license text
  195. LICENSE text
  196. NEWS text
  197. readme text
  198. *README* text
  199. TODO text
  200. # Templates
  201. *.dot text
  202. *.ejs text
  203. *.haml text
  204. *.handlebars text
  205. *.hbs text
  206. *.hbt text
  207. *.jade text
  208. *.latte text
  209. *.mustache text
  210. *.njk text
  211. *.phtml text
  212. *.tmpl text
  213. *.tpl text
  214. *.twig text
  215. *.vue text
  216. # Configs
  217. *.cnf text
  218. *.conf text
  219. *.config text
  220. .editorconfig text
  221. .env text
  222. .gitattributes text
  223. .gitconfig text
  224. .htaccess text
  225. *.lock text -diff
  226. package-lock.json text -diff
  227. *.toml text
  228. *.yaml text
  229. *.yml text
  230. browserslist text
  231. Makefile text
  232. makefile text
  233. # Heroku
  234. Procfile text
  235. # Graphics
  236. *.ai binary
  237. *.bmp binary
  238. *.eps binary
  239. *.gif binary
  240. *.gifv binary
  241. *.ico binary
  242. *.jng binary
  243. *.jp2 binary
  244. *.jpg binary
  245. *.jpeg binary
  246. *.jpx binary
  247. *.jxr binary
  248. *.pdf binary
  249. *.png binary
  250. *.psb binary
  251. *.psd binary
  252. # SVG treated as an asset (binary) by default.
  253. *.svg text
  254. # If you want to treat it as binary,
  255. # use the following line instead.
  256. # *.svg binary
  257. *.svgz binary
  258. *.tif binary
  259. *.tiff binary
  260. *.wbmp binary
  261. *.webp binary
  262. # Audio
  263. *.kar binary
  264. *.m4a binary
  265. *.mid binary
  266. *.midi binary
  267. *.mp3 binary
  268. *.ogg binary
  269. *.ra binary
  270. # Video
  271. *.3gpp binary
  272. *.3gp binary
  273. *.as binary
  274. *.asf binary
  275. *.asx binary
  276. *.fla binary
  277. *.flv binary
  278. *.m4v binary
  279. *.mng binary
  280. *.mov binary
  281. *.mp4 binary
  282. *.mpeg binary
  283. *.mpg binary
  284. *.ogv binary
  285. *.swc binary
  286. *.swf binary
  287. *.webm binary
  288. # Archives
  289. *.7z binary
  290. *.gz binary
  291. *.jar binary
  292. *.rar binary
  293. *.tar binary
  294. *.zip binary
  295. # Fonts
  296. *.ttf binary
  297. *.eot binary
  298. *.otf binary
  299. *.woff binary
  300. *.woff2 binary
  301. # Executables
  302. *.exe binary
  303. *.pyc binary
  304. # RC files (like .babelrc or .eslintrc)
  305. *.*rc text
  306. # Ignore files (like .npmignore or .gitignore)
  307. *.*ignore text