8000 Add a .gitattributes so we can have eol sanity · dotjosh/libgit2sharp@4f23c34 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f23c34

Browse files
tclemnulltoken
authored andcommitted
Add a .gitattributes so we can have eol sanity
1 parent 842e30f commit 4f23c34

File tree

1 file changed

+33
-11
lines changed

1 file changed

+33
-11
lines changed

.gitattributes

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
1-
*.sln crlf
2-
*.csproj crlf
3-
*.cs crlf diff=csharp
1+
# Text files that should be normalized to LF in odb.
2+
*.cs text diff=csharp
3+
*.config text
44

5-
*.md crlf
5+
*.sln text
6+
*.csproj text
67

7-
*.cmd crlf
8-
*.msbuild crlf
9-
*.xml crlf
10-
*.nuspec crlf
11-
*.ps1 crlf
8+
*.md text
9+
*.sh text
10+
*.ps1 text
11+
*.cmd text
12+
*.bat text
13+
*.markdown text
14+
*.msbuild text
1215

13-
.gitattributes crlf
16+
Lib/* binary
17+
GitHub.Tests.Integration/Resources/* binary
1418

15-
*.sh eol=lf
19+
20+
# Binary files that should not be normalized or diffed
21+
*.png binary
22+
*.jpg binary
23+
*.gif binary
24+
25+
*.pfx binary
26+
*.snk binary
27+
*.dll binary
28+
*.exe binary
29+
*.lib binary
30+
*.exp binary
31+
*.pdb binary
32+
*.sdf binary
33+
*.7z binary
34+
35+
36+
# Catch all for anything we forgot. Add rules if you get CRLF -> LF warnings.
37+
* text=auto

0 commit comments

Comments
 (0)
0