Skip to content

Commit 4f547c5

Browse files
authored
Create .gitattributes
1 parent 4d45d4e commit 4f547c5

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

.gitattributes

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
3+
4+
*.doc diff=astextplain
5+
*.DOC diff=astextplain
6+
*.docx diff=astextplain
7+
*.DOCX diff=astextplain
8+
*.dot diff=astextplain
9+
*.DOT diff=astextplain
10+
*.pdf diff=astextplain
11+
*.PDF diff=astextplain
12+
*.rtf diff=astextplain
13+
*.RTF diff=astextplain
14+
15+
*.jpg binary
16+
*.png binary
17+
*.gif binary
18+
19+
# Force bash scripts to always use lf line endings so that if a repo is accessed
20+
# in Unix via a file share from Windows, the scripts will work.
21+
*.in text eol=lf
22+
*.sh text eol=lf
23+
24+
# Likewise, force cmd and batch scripts to always use crlf
25+
*.cmd text eol=crlf
26+
*.bat text eol=crlf
27+
28+
*.cs text=auto diff=csharp
29+
*.vb text=auto
30+
*.resx text=auto
31+
*.c text=auto
32+
*.cpp text=auto
33+
*.cxx text=auto
34+
*.h text=auto
35+
*.hxx text=auto
36+
*.py text=auto
37+
*.rb text=auto
38+
*.java text=auto
39+
*.html text=auto
40+
*.htm text=auto
41+
*.css text=auto
42+
*.scss text=auto
43+
*.sass text=auto
44+
*.less text=auto
45+
*.js text=auto
46+
*.lisp text=auto
47+
*.clj text=auto
48+
*.sql text=auto
49+
*.php text=auto
50+
*.lua text=auto
51+
*.m text=auto
52+
*.asm text=auto
53+
*.erl text=auto
54+
*.fs text=auto
55+
*.fsx text=auto
56+
*.hs text=auto
57+
58+
*.csproj text=auto
59+
*.vbproj text=auto
60+
*.fsproj text=auto
61+
*.dbproj text=auto
62+
*.sln text=auto eol=crlf
63+
64+
# Set linguist language for .h files explicitly based on
65+
# https://github.com/github/linguist/issues/1626#issuecomment-401442069
66+
# this only affects the repo's language statistics
67+
*.h linguist-language=C

0 commit comments

Comments
 (0)