Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit bc19cfe

Browse files
Add a .gitattributes file
This will let git normalize line endings automatically on commit and checkout. In the repository all files will have LF line endings and on checkout everybody gets their native (platform-dependent) line endings.
1 parent c9c19b2 commit bc19cfe

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Enable git's auto-detection of text files and enable normalization of line endings
2+
* text=auto
3+
# Force certain file types to be always considered as text with normalized line endings
4+
*.c text
5+
*.h text
6+
*.i text
7+
*.java text
8+
*.md text
9+
*.py text
10+
*.set text
11+
*.txt text
12+
*.yml text
13+
Makefile text
14+
Makefile.* text
15+
# Prevent changes to certain large directories where it is not relevant now
16+
clauses/** !text
17+
c/Juliet_Test/Juliet_Test_Suite_v1.3_for_C_Cpp/** !text

0 commit comments

Comments
 (0)