-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.gitattributes
More file actions
159 lines (129 loc) · 6.92 KB
/
.gitattributes
File metadata and controls
159 lines (129 loc) · 6.92 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
147
148
149
150
151
152
153
154
155
156
157
158
159
# Source: https://github.com/alexkaratarakis/gitattributes
# The MIT License (MIT)
# Copyright (c) 2015 Alexander Karatarakis
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the righst to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
# OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Common settings that generally should always be used with your language specific settings
# 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
#
# The above will handle all files NOT found below
#
# Documents
*.[bB][iI][bB][tT][eE][xX] text diff=bibtex
*.[dD][oO][cC] filter=lfs diff=lfs merge=lfs -text
*.[dD][oO][cC][xX] filter=lfs diff=lfs merge=lfs -text
*.[xX][lL][sS] filter=lfs diff=lfs merge=lfs -text
*.[xX][lL][sS][xX] filter=lfs diff=lfs merge=lfs -text
*.[pP][pP][tT] filter=lfs diff=lfs merge=lfs -text
*.[pP][pP][tT][xX] filter=lfs diff=lfs merge=lfs -text
*.[dD][oO][tT] filter=lfs diff=lfs merge=lfs -text
*.[pP][dD][fF] filter=lfs diff=lfs merge=lfs -text
*.[rR][tT][fF] filter=lfs diff=lfs merge=lfs -text
*.[mM][dD] text
*.[tT][eE][xX] text diff=tex
*.[aA][dD][oO][cC] text
*.[tT][eE][xX][tT][iI][lL][eE] text
*.[mM][uU][sS][tT][aA][cC][hH][eE] text
*.[cC][sS][vV] text
*.[tT][aA][bB] text
*.[tT][sS][vV] text
*.[tT][xX][tT] text
*.[sS][qQ][lL] text
# Graphics
*.[pP][nN][gG] filter=lfs diff=lfs merge=lfs -text
*.[jJ][pP][gG] filter=lfs diff=lfs merge=lfs -text
*.[jJ][pP][eE][gG] filter=lfs diff=lfs merge=lfs -text
*.[gG][iI][fF] filter=lfs diff=lfs merge=lfs -text
*.[tT][iI][fF] filter=lfs diff=lfs merge=lfs -text
*.[tT][iI][fF][fF] filter=lfs diff=lfs merge=lfs -text
*.[iI][cC][oO] filter=lfs diff=lfs merge=lfs -text
*.[sS][vV][gG] filter=lfs diff=lfs merge=lfs -text
*.[eE][pP][sS] filter=lfs diff=lfs merge=lfs -text
# Scripts
*.[bB][aA][sS][hH] text eol=lf
*.[sS][hH] text eol=lf
# These are explicitly windows files and should use crlf
*.[bB][aA][tT] text eol=crlf
*.[cC][mM][dD] text eol=crlf
*.[pP][sS]1 text eol=crlf
# Serialisation
*.[jJ][sS][oO][nN] text
*.[tT][oO][mM][lL] text
*.[xX][mM][lL] text
*.[yY][aA][mM][lL] text
*.[yY][mM][lL] text
# Archives
*.7[zZ] filter=lfs diff=lfs merge=lfs -text
*.[gG][zZ] filter=lfs diff=lfs merge=lfs -text
*.[tT][aA][rR] filter=lfs diff=lfs merge=lfs -text
*.[zZ][iI][pP] filter=lfs diff=lfs merge=lfs -text
#
# Exclude files from exporting
#
.gitattributes export-ignore
.gitignore export-ignore
# Python
# Sources
*.[pP][xX][dD] text diff=python
*.[pP][yY] text diff=python
*.[pP][yY]3 text diff=python
*.[pP][yY][wW] text diff=python
*.[pP][yY][xX] text diff=python
*.[pP][yY][zZ] text diff=python
*.[pP][yY][iI] text diff=python
# Binary
*.[dD][bB] binary
*.[pP] binary
*.[pP][kK][lL] binary
*.[pP][iI][cC][kK][lL][eE] binary
*.[pP][yY][cC] binary export-ignore
*.[pP][yY][oO] binary export-ignore
*.[pP][yY][dD] binary
# Jupyter
*.[iI][pP][yY][nN][bB] text
# C++
# Sources
*.[cC] text diff=c
*.[cC][cC] text diff=cpp
*.[cC][xX][xX] text diff=cpp
*.[cC][pP][pP] text diff=cpp
*.[cC]++ text diff=cpp
*.[hH][pP][pP] text diff=cpp
*.[hH] text diff=c
*.[hH]++ text diff=cpp
*.[hH][hH] text diff=cpp
# Compiled Object files
*.[sS][lL][oO] filter=lfs diff=lfs merge=lfs -text
*.[lL][oO] filter=lfs diff=lfs merge=lfs -text
*.[oO] filter=lfs diff=lfs merge=lfs -text
*.[oO][bB][jJ] filter=lfs diff=lfs merge=lfs -text
# Precompiled Headers
*.[gG][cC][hH] filter=lfs diff=lfs merge=lfs -text
*.[pP][cC][hH] filter=lfs diff=lfs merge=lfs -text
# Compiled Dynamic libraries
*.[sS][oO] filter=lfs diff=lfs merge=lfs -text
*.[dD][yY][lL][iI][bB] filter=lfs diff=lfs merge=lfs -text
*.[dD][lL][lL] filter=lfs diff=lfs merge=lfs -text
# Compiled Static libraries
*.[lL][aA][iI] filter=lfs diff=lfs merge=lfs -text
*.[lL][aA] filter=lfs diff=lfs merge=lfs -text
*.[aA] filter=lfs diff=lfs merge=lfs -text
*.[lL][iI][bB] filter=lfs diff=lfs merge=lfs -text
# Executables
*.[eE][xX][eE] filter=lfs diff=lfs merge=lfs -text
*.[oO][uU][tT] filter=lfs diff=lfs merge=lfs -text
*.[aA][pP][pP] filter=lfs diff=lfs merge=lfs -text