-
Notifications
You must be signed in to change notification settings - Fork 33
/
.gitattributes
61 lines (55 loc) · 1.39 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
#
# Git normalization
#
# Don't export these to archive
.gitattributes export-ignore
.gitignore export-ignore
# Shorthand for text files
[attr]istext text eol=lf whitespace=trailing-space,space-before-tab
[attr]istext-tab2 text eol=lf whitespace=trailing-space,space-before-tab,tab-in-indent,tabwidth=2
[attr]istext-tab4 text eol=lf whitespace=trailing-space,space-before-tab,tab-in-indent,tabwidth=4
# Shorthand for binary files
[attr]isbinary -text diff
# Auto-detect text files, ensure they use LF
* text=auto eol=lf
# Define text file attributes
*.c istext diff=cpp
*.cpp istext-tab4 diff=cpp
*.css istext-tab2
*.csv istext
*.h istext-tab4 diff=cpp
*.htm istext-tab2 diff=html
*.html istext-tab2 diff=html
*.js istext-tab2
*.json istext-tab2
*.md istext
*.php istext-tab4 diff=php
*.po istext
*.pro istext
*.py istext-tab4 diff=python
*.rst istext
*.sh istext
*.sls istext-tab2
*.sty istext diff=tex
*.svg istext
*.txt istext
*.tex istext diff=tex
*.ui istext
*.xml istext
*.xsd istext
*.yml istext-tab2
# Define binary file attributes
*.eot isbinary
*.gif isbinary
*.gz isbinary
*.ico isbinary
*.jpg isbinary
*.jpeg isbinary
*.otf isbinary
*.png isbinary
*.pdf isbinary
*.tif isbinary
*.tiff isbinary
*.ttf isbinary
*.woff isbinary
*.zip isbinary