Skip to content

Commit 0bab259

Browse files
authored
Merge pull request #504 from apache/tisonkun-patch-2
Update .gitattributes for new file types
2 parents 75934fa + 58344f3 commit 0bab259

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.gitattributes

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Override 'core.autocrlf' while still using Git's built-in heuristics to detect text vs binary.
2+
# Normalize all text files to LF line endings on checkout.
3+
* text=auto eol=lf
4+
5+
# Explicitly declare text files that should always be LF
6+
.asf.yaml text eol=lf
7+
.gitattributes text eol=lf
8+
.gitignore text eol=lf
9+
LICENSE text eol=lf
10+
NOTICE text eol=lf
11+
*.html text eol=lf
12+
*.hpp text eol=lf
13+
*.cpp text eol=lf
14+
*.sk text eol=lf
15+
*.md text eol=lf
16+
*.properties text eol=lf
17+
*.sh text eol=lf
18+
*.xml text eol=lf
19+
*.yml text eol=lf
20+
*.yaml text eol=lf
21+
*.txt text eol=lf
22+
23+
24+
# Declare files that will always have CRLF line endings on checkout.
25+
# Windows batch scripts strictly require CRLF
26+
*.bat text eol=crlf
27+
*.cmd text eol=crlf
28+
29+
# Explicitly denote all files that are truly binary and should not be modified.
30+
*.jpg binary
31+
*.png binary
32+
*.svg binary
33+
34+
# Declare files that should be ignored when creating an archive of the git repository
35+
.asf.yaml export-ignore
36+
.gitattributes export-ignore
37+
.gitignore export-ignore
38+
.github/ export-ignore

0 commit comments

Comments
 (0)