Skip to content

Commit 38e08a2

Browse files
committed
Adding gitattributes file for managing line ending conversions
Signed-off-by: Frederic Pillon <[email protected]>
1 parent a452b87 commit 38e08a2

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*]
2+
end_of_line = lf
3+
insert_final_newline = true
4+
indent_style = space
5+
indent_size = 2
6+
trim_trailing_whitespace = true

.gitattributes

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
.editorconfig text eol=lf
7+
.gitattributes text eol=lf
8+
.gitignore text eol=lf
9+
10+
*.c text eol=lf
11+
*.cpp text eol=lf
12+
*.css text eol=lf
13+
*.h text eol=lf
14+
*.html text eol=lf
15+
*.ino text eol=lf
16+
*.json text eol=lf
17+
*.md text eol=lf
18+
*.MD text eol=lf
19+
*.properties text eol=lf
20+
*.readme text eol=lf
21+
*.txt text eol=lf
22+
*.url text eol=lf
23+
*.yml text eol=lf

0 commit comments

Comments
 (0)