Skip to content

Commit a3e819a

Browse files
committed
chore: standardize .gitattributes (RSR)
1 parent 6bced44 commit a3e819a

1 file changed

Lines changed: 51 additions & 168 deletions

File tree

.gitattributes

Lines changed: 51 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -1,171 +1,54 @@
1-
# SPDX-License-Identifier: MIT AND Palimpsest-0.8
2-
# SPDX-FileCopyrightText: 2024-2025 The polysafe-gitfixer Contributors
3-
#
4-
# Git attributes for polysafe-gitfixer
5-
# Ensures consistent line endings and diff behavior across platforms
6-
7-
# ==============================================================================
8-
# Auto-detect text files and normalize line endings
9-
# ==============================================================================
10-
* text=auto
11-
12-
# ==============================================================================
13-
# Source Code - Text files with LF normalization
14-
# ==============================================================================
15-
16-
# Rust
17-
*.rs text eol=lf diff=rust
18-
*.toml text eol=lf
19-
20-
# Haskell
21-
*.hs text eol=lf diff=haskell
22-
*.lhs text eol=lf diff=haskell
23-
*.cabal text eol=lf
24-
25-
# Elixir
26-
*.ex text eol=lf diff=elixir
27-
*.exs text eol=lf diff=elixir
28-
*.eex text eol=lf
29-
*.heex text eol=lf
30-
*.leex text eol=lf
31-
mix.lock text eol=lf
32-
33-
# Idris
34-
*.idr text eol=lf
35-
*.ipkg text eol=lf
36-
37-
# Nickel
38-
*.ncl text eol=lf
39-
40-
# Nix
41-
*.nix text eol=lf
42-
flake.lock text eol=lf
43-
44-
# C/C++ (for native dependencies)
45-
*.c text eol=lf diff=cpp
46-
*.h text eol=lf diff=cpp
47-
*.cpp text eol=lf diff=cpp
48-
*.hpp text eol=lf diff=cpp
49-
50-
# ==============================================================================
51-
# Documentation - Text files with LF normalization
52-
# ==============================================================================
53-
54-
*.md text eol=lf diff=markdown
55-
*.adoc text eol=lf
56-
*.txt text eol=lf
57-
*.rst text eol=lf
58-
*.html text eol=lf diff=html
59-
*.css text eol=lf diff=css
60-
*.xml text eol=lf
61-
62-
# ==============================================================================
63-
# Configuration - Text files with LF normalization
64-
# ==============================================================================
65-
66-
*.yml text eol=lf
67-
*.yaml text eol=lf
68-
*.json text eol=lf
69-
*.conf text eol=lf
70-
*.cfg text eol=lf
71-
*.ini text eol=lf
72-
*.env text eol=lf
73-
74-
# Shell scripts
75-
*.sh text eol=lf diff=bash
76-
*.bash text eol=lf diff=bash
77-
*.zsh text eol=lf
78-
79-
# Build files
80-
Makefile text eol=lf
81-
justfile text eol=lf
82-
Containerfile text eol=lf
83-
Dockerfile text eol=lf
84-
85-
# Git
86-
.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
8735
.gitattributes text eol=lf
88-
.gitmodules text eol=lf
89-
90-
# ==============================================================================
91-
# Binary Files - Explicitly mark as binary
92-
# ==============================================================================
93-
94-
# Images
95-
*.png binary
96-
*.jpg binary
97-
*.jpeg binary
98-
*.gif binary
99-
*.ico binary
100-
*.webp binary
101-
*.svg text eol=lf
102-
103-
# Documents
104-
*.pdf binary
105-
106-
# Archives
107-
*.zip binary
108-
*.tar binary
109-
*.gz binary
110-
*.bz2 binary
111-
*.xz binary
112-
*.7z binary
113-
114-
# Compiled
115-
*.wasm binary
116-
*.so binary
117-
*.dylib binary
118-
*.dll binary
119-
*.exe binary
120-
*.a binary
121-
*.o binary
122-
*.beam binary
123-
124-
# Fonts
125-
*.ttf binary
126-
*.otf binary
127-
*.woff binary
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
12848
*.woff2 binary
129-
*.eot binary
130-
131-
# ==============================================================================
132-
# Export Ignore - Files not included in archives
133-
# ==============================================================================
134-
135-
.git export-ignore
136-
.gitignore export-ignore
137-
.gitattributes export-ignore
138-
.gitlab-ci.yml export-ignore
139-
.github export-ignore
140-
.well-known export-ignore
141-
142-
# Development files
143-
.editorconfig export-ignore
144-
.envrc export-ignore
145-
*.nix export-ignore
146-
flake.lock export-ignore
147-
148-
# Test fixtures
149-
test/fixtures export-ignore
150-
tests/fixtures export-ignore
151-
152-
# Documentation source (keep compiled docs)
153-
docs/*.adoc export-ignore
154-
155-
# ==============================================================================
156-
# Linguist Overrides (for GitHub language detection)
157-
# ==============================================================================
158-
159-
# Ensure Rust is detected as primary language
160-
*.rs linguist-detectable=true
161-
*.hs linguist-detectable=true
162-
*.ex linguist-detectable=true
163-
*.idr linguist-detectable=true
164-
165-
# Don't count generated files
166-
Cargo.lock linguist-generated=true
167-
flake.lock linguist-generated=true
168-
mix.lock linguist-generated=true
49+
*.zip binary
50+
*.gz binary
16951

170-
# Vendor directories (if any)
171-
vendor/* linguist-vendored=true
52+
# Lock files
53+
Cargo.lock text eol=lf -diff
54+
flake.lock text eol=lf -diff

0 commit comments

Comments
 (0)