summaryrefslogtreecommitdiff
path: root/.gitattributes
blob: 66c92f8aac4132f2e10ee2db55a7e90714e8073c (plain)
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# .gitattributes

# http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
# http://git-scm.com/book/ch7-2.html

# attempt to normalize all files, this is typically a good thing
* text=auto

# types requiring CRLF
[attr]visualstudio text eol=crlf
*.csproj  visualstudio
*.def     visualstudio
*.dsp     visualstudio
*.dsw     visualstudio
*.rc2     visualstudio
*.resx    visualstudio
*.sln     visualstudio
*.vcproj  visualstudio
*.vcxproj visualstudio
*.vsprops visualstudio

# explicit normalizations

*.gyp  text
*.gypi text

# C/C++
*.h    text
*.hpp  text
*.hxx  text
*.c    text
*.cc   text
*.cpp  text
*.inl  text

# C#
*.cs   text
*.xaml text

# Configuration
*.conf text
*.ini  text

# HTML5
*.css  text
*.html text
*.htm  text
*.svg  text

# Sass (http://sass-lang.com/)
*.scss text

# JavaScript (ECMAScript)
*.json text
*.js   text

# Lua
*.lua  text

# Make
*.mak  text
*.mk   text

# Shell
*.sh   text eol=lf
*.ksh  text eol=lf

# Text
*.txt  text

# Python
*.py   text

# Ruby
*.rb   text

# XML
*.xml  text
*.xsd  text



# skip git delta compression for compressed file formats
# initial list modified from https://github.com/hbons/SparkleShare/issues/519
# 'binary' implies '-diff'
#   (so if custom diff textconv=exif for jpg, then also remove binary attribute)
#   (if exif data changes, but image does not, then delta compression helps,
#    so delta compression desirable when images are uniquely named, and not
#    changed except for exif info)
[attr] nopack binary -delta
# media
*.jpg  nopack
*.JPG  nopack
*.jpeg nopack
*.JPEG nopack
*.png  nopack
*.PNG  nopack
*.tiff nopack
*.TIFF nopack
*.flac nopack
*.FLAC nopack
*.mp3  nopack
*.MP3  nopack
*.mp4  nopack
*.MP4  nopack
*.ogg  nopack
*.OGG  nopack
*.oga  nopack
*.OGA  nopack
*.avi  nopack
*.AVI  nopack
*.mov  nopack
*.MOV  nopack
*.mpg  nopack
*.MPG  nopack
*.mpeg nopack
*.MPEG nopack
*.mkv  nopack
*.MKV  nopack
*.ogv  nopack
*.OGV  nopack
*.ogx  nopack
*.OGX  nopack
*.webm nopack
*.WEBM nopack

# archive
*.7z   nopack
*.7Z   nopack
*.ace  nopack
*.ACE  nopack
*.gz   nopack
*.GZ   nopack
*.bz2  nopack
*.BZ2  nopack
*.pak  nopack
*.PAK  nopack
*.rar  nopack
*.RAR  nopack
*.tar  nopack
*.TAR  nopack
*.tgz  nopack
*.TGZ  nopack
*.z    nopack
*.Z    nopack
*.zip  nopack
*.ZIP  nopack

# package management
*.deb  nopack
*.DEB  nopack
*.rpm  nopack
*.RPM  nopack

# postscript (can compress)
*.ps   -diff

# (above is not an unabridged list)
# (more compressed file formats, compressed media formats, package formats, ...)
# http://en.wikipedia.org/wiki/List_of_archive_formats
# http://en.wikipedia.org/wiki/List_of_file_formats
# http://www.fileinfo.com/filetypes/compressed
# http://www.file-extensions.org/filetype/extension/name/archive-and-compressed-files

# (consider managing binary artifacts in git-annex or other external management
#  such as Archiva, Artifactory, Nexus)

# (binary artifacts are best stored outside of git, but abuse is inevitable)
*.a    nopack
*.exe  nopack
*.o    nopack
*.so   nopack