Skip to content

Commit 06e921d

Browse files
committed
Add .gitattributes to enforce LF line endings
1 parent 56bebfb commit 06e921d

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.gitattributes

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Set default line ending behavior for all files
2+
* text=lf
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.rb text=lf
7+
*.rake text=lf
8+
*.gemspec text=lf
9+
Gemfile text=lf
10+
Gemfile.lock text=lf
11+
Rakefile text=lf
12+
*.md text=lf
13+
*.yml text=lf
14+
*.yaml text=lf
15+
*.json text=lf
16+
*.txt text=lf
17+
*.sh text=lf
18+
19+
# Denote all files that are truly binary and should not be modified.
20+
*.png binary
21+
*.jpg binary
22+
*.jpeg binary
23+
*.gif binary
24+
*.ico binary
25+
*.pdf binary
26+
*.zip binary
27+
*.tar binary
28+
*.gz binary

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@
99

1010
# rspec failure tracking
1111
.rspec_status
12+
13+
# built gem files
14+
*.gem

0 commit comments

Comments
 (0)