aboutsummaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-08-20 17:21:28 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-08-20 17:27:51 +0300
commitf0fd840a578752bdd820c302f58e406849f2b55c (patch)
treef8018eb979e6258d907d07cf1d078dc0821285cd /.gitattributes
parenta3a312f8f4f4d836de494fe3502ea3175ba2a22c (diff)
downloadqmk_firmware-f0fd840a578752bdd820c302f58e406849f2b55c.tar.gz
qmk_firmware-f0fd840a578752bdd820c302f58e406849f2b55c.zip
Add .gitattributes to ensure correct line endings
It also ensures that make files and shell script are checked out with lf endings, for compability with the Windows 10 bash
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes93
1 files changed, 93 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..8fd1fd752
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,93 @@
1# auto for anything unspecified
2* text=auto
3
4# sources
5*.c text
6*.cc text
7*.cxx text
8*.cpp text
9*.c++ text
10*.hpp text
11*.h text
12*.h++ text
13*.hh text
14*.bat text
15*.coffee text
16*.css text
17*.htm text
18*.html text
19*.inc text
20*.ini text
21*.js text
22*.jsx text
23*.json text
24*.less text
25*.php text
26*.pl text
27*.py text
28*.rb text
29*.sass text
30*.scm text
31*.scss text
32*.sh text
33*.sql text
34*.styl text
35*.ts text
36*.xml text
37*.xhtml text
38
39# make files (need to always use lf for compatibility with Windows 10 bash)
40Makefile eol=lf
41*.mk eol=lf
42
43# make files (need to always use lf for compatibility with Windows 10 bash)
44*.sh eol=lf
45
46# documentation
47*.markdown text
48*.md text
49*.mdwn text
50*.mdown text
51*.mkd text
52*.mkdn text
53*.mdtxt text
54*.mdtext text
55*.txt text
56AUTHORS text
57CHANGELOG text
58CHANGES text
59CONTRIBUTING text
60COPYING text
61INSTALL text
62license text
63LICENSE text
64NEWS text
65readme text
66*README* text
67TODO text
68
69GRAPHICS
70*.ai binary
71*.bmp binary
72*.eps binary
73*.gif binary
74*.ico binary
75*.jng binary
76*.jp2 binary
77*.jpg binary
78*.jpeg binary
79*.jpx binary
80*.jxr binary
81*.pdf binary
82*.png binary
83*.psb binary
84*.psd binary
85*.svg text
86*.svgz binary
87*.tif binary
88*.tiff binary
89*.wbmp binary
90*.webp binary
91
92# hex files
93*.hex binary