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