Skip to content

Commit cb04a80

Browse files
committed
chore: standardize .gitattributes (RSR)
1 parent 4ea1d8c commit cb04a80

1 file changed

Lines changed: 53 additions & 68 deletions

File tree

.gitattributes

Lines changed: 53 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,54 @@
1-
# SPDX-License-Identifier: MIT
2-
# SPDX-FileCopyrightText: 2025 Jonathan D. A. Jewell <hyperpolymath>
3-
#
4-
# Git Attributes Configuration
5-
# Ensures consistent behavior across platforms
6-
7-
# Auto-detect text files and normalize line endings
8-
* text=auto
9-
10-
# Source code - LF line endings
11-
*.rs text eol=lf
12-
*.toml text eol=lf
13-
*.ncl text eol=lf
14-
*.nix text eol=lf
15-
*.sh text eol=lf
16-
*.php text eol=lf
17-
*.py text eol=lf
18-
19-
# Documentation - LF line endings
20-
*.md text eol=lf
21-
*.adoc text eol=lf
22-
*.txt text eol=lf
23-
*.yml text eol=lf
24-
*.yaml text eol=lf
25-
*.json text eol=lf
26-
27-
# Configuration
28-
*.conf text eol=lf
29-
*.ini text eol=lf
30-
*.cfg text eol=lf
31-
.gitignore text eol=lf
1+
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# RSR-compliant .gitattributes
3+
4+
* text=auto eol=lf
5+
6+
# Source
7+
*.rs text eol=lf diff=rust
8+
*.ex text eol=lf diff=elixir
9+
*.exs text eol=lf diff=elixir
10+
*.jl text eol=lf
11+
*.res text eol=lf
12+
*.resi text eol=lf
13+
*.ada text eol=lf diff=ada
14+
*.adb text eol=lf diff=ada
15+
*.ads text eol=lf diff=ada
16+
*.hs text eol=lf
17+
*.chpl text eol=lf
18+
*.scm text eol=lf
19+
*.ncl text eol=lf
20+
*.nix text eol=lf
21+
22+
# Docs
23+
*.md text eol=lf diff=markdown
24+
*.adoc text eol=lf
25+
*.txt text eol=lf
26+
27+
# Data
28+
*.json text eol=lf
29+
*.yaml text eol=lf
30+
*.yml text eol=lf
31+
*.toml text eol=lf
32+
33+
# Config
34+
.gitignore text eol=lf
3235
.gitattributes text eol=lf
33-
Justfile text eol=lf
34-
Containerfile text eol=lf
35-
Dockerfile text eol=lf
36-
37-
# Templates (DNS zone files)
38-
*.tpl text eol=lf
39-
*.db text eol=lf
40-
*.zone text eol=lf
41-
42-
# Binary files - no conversion
43-
*.png binary
44-
*.jpg binary
45-
*.jpeg binary
46-
*.gif binary
47-
*.ico binary
48-
*.pdf binary
49-
*.wasm binary
50-
51-
# Archives - no conversion
52-
*.tar binary
53-
*.tar.gz binary
54-
*.zip binary
55-
56-
# Diff configuration
57-
*.rs diff=rust
58-
*.md diff=markdown
59-
*.adoc diff=asciidoc
60-
61-
# Merge strategies
62-
Cargo.lock merge=binary
63-
flake.lock merge=binary
64-
65-
# Export ignore (not included in archives)
66-
.git* export-ignore
67-
.gitlab-ci.yml export-ignore
68-
.pre-commit-config.yaml export-ignore
69-
tests/ export-ignore
36+
justfile text eol=lf
37+
Makefile text eol=lf
38+
Containerfile text eol=lf
39+
40+
# Scripts
41+
*.sh text eol=lf
42+
43+
# Binary
44+
*.png binary
45+
*.jpg binary
46+
*.gif binary
47+
*.pdf binary
48+
*.woff2 binary
49+
*.zip binary
50+
*.gz binary
51+
52+
# Lock files
53+
Cargo.lock text eol=lf -diff
54+
flake.lock text eol=lf -diff

0 commit comments

Comments
 (0)