-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitattributes
132 lines (115 loc) · 3.72 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# 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 filter=lfs diff=lfs merge=lfs -text
*.DOCX filter=lfs diff=lfs merge=lfs -text
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf filter=lfs diff=lfs merge=lfs -text
*.PDF filter=lfs diff=lfs merge=lfs -text
*.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
*.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 filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.tif filter=lfs diff=lfs merge=lfs -text
*.tiff filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text
*.eps filter=lfs diff=lfs merge=lfs -text
*.svg text eol=lf
*.svgz filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text
# 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 filter=lfs diff=lfs merge=lfs -text
*.eot filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text
*.woff filter=lfs diff=lfs merge=lfs -text
*.woff2 filter=lfs diff=lfs merge=lfs -text
# 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 filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
# 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