Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
75 lines (62 loc) · 3.02 KB
/
Copy path.gitattributes
File metadata and controls
75 lines (62 loc) · 3.02 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
# Language/framework-agnostic base. `* text=auto eol=lf` normalizes text to LF in
# the repository AND checks it out LF on every platform (deterministic, regardless
# of a developer's core.autocrlf). Windows-native types below override to CRLF. A
# later line overrides an earlier one, per attribute. This file is the single
# authority for line endings (editorconfig end_of_line is an editor hint only).
* text=auto eol=lf
###############################################################################
# Richer diffs (line endings inherit the LF default above).
###############################################################################
*.md diff=markdown
*.sh diff=bash
*.bash diff=bash
###############################################################################
# PowerShell: LF is deliberate. Verified to run on both PowerShell 7 and
# Windows PowerShell 5.1. The PowerShell repo pins .ps1 to eol=lf; the popular
# community gitattributes template pins crlf, and they target different eras. Listed
# explicitly so it is not "corrected" to crlf without a requirement to round-trip
# pre-existing CRLF-signed scripts unchanged.
###############################################################################
*.ps1 text eol=lf
*.psm1 text eol=lf
*.psd1 text eol=lf
###############################################################################
# Windows-native: cmd.exe requires CRLF (overrides the LF default above).
###############################################################################
*.cmd text eol=crlf
*.bat text eol=crlf
###############################################################################
# Lockfiles: tracked, but suppress noisy diffs (regenerate to resolve).
###############################################################################
package-lock.json -diff
packages.lock.json -diff
*.lock -diff
###############################################################################
# Append-only lists: one entry per line, order carries no meaning, and each
# list's checker compares sets (keyed lists fail on a key listed twice). A union
# merge keeps both sides' appended lines instead of conflicting. These paths
# exist only in claude-code-plugins; in other repositories they match nothing.
###############################################################################
scripts/affected-tests-no-suite.txt merge=union
scripts/em-dash-purged-paths.txt merge=union
scripts/fragment-plugins.txt merge=union
scripts/outside-node-packages.txt merge=union
scripts/shared-copies.txt merge=union
scripts/skill-leaf-name-registry.txt merge=union
###############################################################################
# Binary: no line-ending conversion, no diff.
###############################################################################
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.webp binary
*.pdf binary
*.zip binary
*.gz binary
*.7z binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary