-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitattributes
117 lines (117 loc) · 3.12 KB
/
.gitattributes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Helps Git use the right algorithms for diffs
# https://git-scm.com/docs/gitattributes
# Auto detect text files and perform LF normalization
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
# Front-end
*.css text eol=lf diff=css
*.htm text eol=lf diff=html
*.html text eol=lf diff=html
*.js text eol=lf
*.less text eol=lf diff=css
*.sass text eol=lf diff=css
*.scss text eol=lf diff=css
*.ts text eol=lf
*.xhtml text eol=lf diff=html
# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text eol=lf diff=markdown
*.tex text eol=lf diff=tex
*.adoc text eol=lf
*.textile text eol=lf
*.mustache text eol=lf
*.csv text eol=lf
*.tab text eol=lf
*.tsv text eol=lf
*.txt text eol=lf
*.sql text eol=lf
*.markdown text eol=lf diff=markdown
*.md text eol=lf diff=markdown
*.mdwn text eol=lf diff=markdown
*.mdown text eol=lf diff=markdown
*.mkd text eol=lf diff=markdown
*.mkdn text eol=lf diff=markdown
*.mdtxt text eol=lf diff=markdown
*.mdtext text eol=lf diff=markdown
*.txt text eol=lf
# "Files"
Dockerfile text eol=lf
Makefile text eol=lf
*README* text eol=lf
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
*.eps binary
*.svg text eol=lf
*.svgz binary
*.webp binary
# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
# Serialization
*.ini text eol=lf
*.json text eol=lf
*.toml text eol=lf
*.xml text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
# Configs
*.conf text eol=lf
*.config text eol=lf
.editorconfig text eol=lf
.env text eol=lf
.gitattributes text eol=lf
.gitconfig text eol=lf
*.lock text eol=lf -diff
package-lock.json text eol=lf -diff
# Archives
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary
# Database
*.sql text eol=lf
# Text files where line endings should be preserved
*.patch -text
# Exclude files from exporting
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
# Treat all Go files in this repo as binary, with no git magic updating
# line endings. Windows users contributing to Go will need to use a
# modern version of git and editors capable of LF line endings.
*.go -text diff=golang
# Terraform
*.tf text eol=lf
*.tfvars text eol=lf
*.hcl text eol=lf
# Ignore files (like .npmignore or .gitignore)
*.*ignore text eol=lf
*.pgo filter=lfs diff=lfs merge=lfs -text