Skip to content

Commit d1dcc8b

Browse files
committed
Ensure line endings are handled by git
Checkout/commit native line endings, even if users don't have `core.autocrlf` set.
1 parent 26d5954 commit d1dcc8b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.gitattributes

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
*.c text
7+
*.h text
8+
*.f90 text
9+
*.F90 text
10+
*.md text
11+
*.txt text
12+
*.sh text
13+
*.cu text
14+
15+
# Denote all files that are truly binary and should not be modified.
16+
*.mod binary
17+
*.o binary
18+
*.a binary
19+
*.so binary
20+
*.tar binary
21+
*.gz binary
22+
*.tgz binary
23+
24+
# Prevent dev-ops files from making it into the release archives
25+
.gitattributes export-ignore
26+
.gitignore export-ignore
27+
codecov.yml export-ignore
28+
.github export-ignore
29+
30+
# Perform substitutions when `git export`ing these files
31+
.VERSION export-subst

0 commit comments

Comments
 (0)