-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
146 lines (124 loc) · 5.51 KB
/
Copy path.gitattributes
File metadata and controls
146 lines (124 loc) · 5.51 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# ----------------------------------------------------------------------------------------------------------------------
# Modified by: BH Dicaire
# Reference: https://git-scm.com/docs/gitattributes
# ----------------------------------------------------------------------------------------------------------------------
# Core normalization for all text files (macOS default is LF)
# Enforce line endings to LF on checkin and prevents conversion to CRLF when the file is checked out
# ----------------------------------------------------------------------------------------------------------------------
* text=auto eol=lf
# Text formats
# ----------------------------------------------------------------------------------------------------------------------
*.bat text eol=crlf whitespace=blank-at-eol,-blank-at-eof
*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=css
*.csv text eol=lf whitespace=blank-at-eol,-blank-at-eof
*.htm text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html
*.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html
*.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=markdown
*.py text eol=lf whitespace=blank-at-eol,-blank-at-eof
*.sass text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.scss text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=css
*.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.toml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.tsv text eol=lf whitespace=blank-at-eol,-blank-at-eof
*.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yaml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
# ----------------------------------------------------------------------------------------------------------------------
# whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
# - Treats trailing whitespaces at the end of the line as an error
# - Does not treat blank lines added at the end of file as an error
# - Does not treat a space character that appears immediately before a tab
# character in the initial indent part of the line as an error
# - Treats a tab character in the initial indent part of the line as an error
# - Sets the tabwidth to 2
# ----------------------------------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------------------------
# The whitespace configuration defines what diff and apply should consider whitespace errors
# - Errors are exposed by default in 'git diff --color'
# - Validate with 'git diff --check'
# - Deny applying with 'git apply --whitespace=error-all'
# - Fix automatically with 'git apply --whitespace=fix'
# ----------------------------------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------------------------
# Git LFS (uncomment if you use LFS for large assets)
# *.psd filter=lfs diff=lfs merge=lfs -text
# *.bin filter=lfs diff=lfs merge=lfs -text
# ----------------------------------------------------------------------------------------------------------------------
# Binary formats
# ----------------------------------------------------------------------------------------------------------------------
# Archive & compressed archive.
*.iso binary
*.tar binary
*.bz2 binary
*.gz binary
*.phar binary
*.rar binary
*.tar.gz binary
*.tgz binary
*.zip binary
# Adobe.
*.ai binary
*.eps binary
*.pdf binary
*.ps binary
*.psd binary
# Audio/video.
*.mp3 binary
*.mp4 binary
*.oga binary
*.ogg binary
*.ogv binary
*.ogx binary
*.webm binary
# Fonts.
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
# Images.
*.bmp binary
*.gif binary
*.ico binary
*.jpeg binary
*.jpg binary
*.png binary
*.svgz binary
*.tif binary
*.tiff binary
*.webp binary
# Libre Office.
*.odb binary
*.odf binary
*.odg binary
*.odm binary
*.odp binary
*.ods binary
*.odt binary
*.otg binary
*.otp binary
*.ots binary
*.ott binary
# Microsoft Office.
*.docx binary
*.dotx binary
*.potx binary
*.pptx binary
*.xlsx binary
*.xltx binary
# Microsoft Office (legacy).
*.doc binary
*.dot binary
*.pot binary
*.ppt binary
*.xls binary
*.xlt binary
# OS-generated & metadata files
.DS_Store binary
# Other.
*.dll binary
*.exe binary