Skip to content

Commit ca9889e

Browse files
committed
chore: standardize .gitattributes (RSR)
1 parent 7ad46cb commit ca9889e

File tree

1 file changed

+46
-18
lines changed

1 file changed

+46
-18
lines changed

.gitattributes

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,54 @@
1-
# Auto detect text files and perform LF normalization
2-
* text=auto
1+
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
# RSR-compliant .gitattributes
33

4-
# Julia
5-
*.jl text diff=julia
4+
* text=auto eol=lf
65

7-
# Documentation
8-
*.md text diff=markdown
9-
*.adoc text
10-
*.txt text
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
1126

1227
# Data
13-
*.json text
14-
*.yml text
15-
*.yaml text
16-
*.toml text
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
35+
.gitattributes text eol=lf
36+
justfile text eol=lf
37+
Makefile text eol=lf
38+
Containerfile text eol=lf
1739

1840
# Scripts
19-
*.sh text eol=lf
20-
bin/* text eol=lf
41+
*.sh text eol=lf
2142

2243
# Binary
23-
*.png binary
24-
*.jpg binary
25-
*.gif binary
26-
*.ico 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)