Skip to content

Commit eb3b56a

Browse files
Add standard .gitattributes file (#7)
1 parent c84c271 commit eb3b56a

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

.gitattributes

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# -------------------------------------------------
2+
# Global normalization
3+
# -------------------------------------------------
4+
* text=auto
5+
6+
# -------------------------------------------------
7+
# Core source and configuration files (LF)
8+
# -------------------------------------------------
9+
*.java text eol=lf
10+
*.properties text eol=lf
11+
*.xml text eol=lf
12+
*.yml text eol=lf
13+
*.yaml text eol=lf
14+
*.md text eol=lf
15+
*.txt text eol=lf
16+
17+
# Optional: web assets (LF everywhere)
18+
*.html text eol=lf
19+
*.css text eol=lf
20+
*.js text eol=lf
21+
*.json text eol=lf
22+
23+
# -------------------------------------------------
24+
# Build tool / Gradle & Kotlin DSL files (LF) (safe even if not used)
25+
# -------------------------------------------------
26+
*.gradle text eol=lf
27+
*.gradle.kts text eol=lf
28+
*.kts text eol=lf
29+
30+
# -------------------------------------------------
31+
# Script wrappers (important for Spring Boot tooling)
32+
# -------------------------------------------------
33+
mvnw text eol=lf
34+
gradlew text eol=lf
35+
*.sh text eol=lf
36+
37+
# -------------------------------------------------
38+
# Windows scripts
39+
# -------------------------------------------------
40+
*.bat text eol=crlf
41+
*.cmd text eol=crlf
42+
*.ps1 text eol=lf # PowerShell Core friendly
43+
44+
# Wrapper batch files (explicit for clarity)
45+
gradlew.bat text eol=crlf
46+
47+
# -------------------------------------------------
48+
# GitHub language statistics
49+
# Emphasize Java by ignoring frontend static assets
50+
# -------------------------------------------------
51+
/src/main/resources/static/** linguist-ignore
52+
53+
# -------------------------------------------------
54+
# Reduce noisy diffs
55+
# -------------------------------------------------
56+
*.min.js -diff
57+
*.min.css -diff
58+
package-lock.json -diff
59+
yarn.lock -diff
60+
pnpm-lock.yaml -diff
61+
62+
# -------------------------------------------------
63+
# Binary assets (no diffs)
64+
# -------------------------------------------------
65+
*.png binary
66+
*.jpg binary
67+
*.jpeg binary
68+
*.gif binary
69+
*.webp binary
70+
*.pdf binary
71+
*.pptx binary
72+
*.docx binary
73+
*.xlsx binary
74+
*.jar binary
75+
*.zip binary
76+
77+
# -------------------------------------------------
78+
# Keep SVGs diffable (and normalize line endings)
79+
# -------------------------------------------------
80+
*.svg text eol=lf

0 commit comments

Comments
 (0)