-
Notifications
You must be signed in to change notification settings - Fork 61
/
.gitattributes
112 lines (92 loc) · 2.04 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
#
# File type specific Git settings
# ===============================
#
# Default
# -------
# If a file doesn’t match anything below, fall back to autodetection.
# <http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/>.
* text=auto
# Text files
# ----------
# Always perform CRLF → LF normalization on these.
# * Source code
*.js text
*.sh text
*.fish text
# * Docs
*.md text
# * Config and data files
*.json text
*.{yml,yaml} text
.editorconfig text
.gitattributes text
.gitignore text
.jscsrc text
.jshintignore text
.jshintrc text
.npmignore text
# * Web stuff
*.html text
*.svg text
*.mustache text
# * Other text files
*.csv text
*.xml text
# Smart diffs
# -----------
# Show approximate diffs for binary files by converting them to plain text.
# * Show PDF and *MS Office* documents as text
# – if you’re not on *Git Bash*, put this into your .gitconfig:
# [diff "astextplain"]
# textconv = pdf2txt
# binary = true
*.pdf diff=astextplain
*.doc diff=astextplain
*.docx diff=astextplain
*.dot diff=astextplain
*.rtf diff=astextplain
# * Show ODF documents as text
# – install *odt2txt* and put this into your .gitconfig:
# [diff "odf"]
# textconv=odt2txt
# binary = true
.odt diff=odf
.ods diff=odf
.odp diff=odf
.odb diff=odf
.odg diff=odf
.odf diff=odf
# * Show EXIF data from JPEG images
# – install *exif* and put this into your .gitconfig:
# [diff "jpg"]
# textconv = exif
# binary = true
*.{jpg,jpeg} diff=exif
# Plain binary files
# ------------------
# Just treat them as blobs.
# * Binary image formats
*.png binary
*.gif binary
*.xcf binary
*.ico binary
*.psd binary
*.ai binary
*.sketch binary
# * Video and audio files
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
# * Archives
*.gz binary
*.zip binary
*.7z binary
*.tar binary
*.rar binary
# * Fonts
*.ttf binary
*.otf binary