-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.gitattributes
More file actions
65 lines (59 loc) · 2.15 KB
/
Copy path.gitattributes
File metadata and controls
65 lines (59 loc) · 2.15 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
# .gitattributes — line-ending posture for the SuperBased Observer tree.
#
# Issue 6 of the 2026-06-02 teams test findings: a Windows checkout with
# default core.autocrlf=true rewrote every text file's line endings to
# CRLF on the working tree, and the alpine `sh` inside the dev-stack
# `keygen` container failed to parse the resulting `keygen.sh`
# (`set: illegal option -`), aborting the org-stack bring-up. The
# fix (and the prevention for any future Windows-clone-meets-alpine
# trap) is to declare every text file LF-only at the .gitattributes
# layer: Git rewrites CRLF → LF on stage and serves LF on checkout
# regardless of core.autocrlf.
#
# Existing CRLF in a working tree won't auto-fix; an operator who hit
# the trap previously can renormalize after pulling this commit with:
#
# git add --renormalize . && git commit -m "chore: re-normalize EOL"
#
# The `* text=auto eol=lf` line covers anything Git detects as text.
# The explicit declarations below pin the LF posture for files
# Git heuristics sometimes misclassify (mostly extensionless shell
# scripts) and for binary types we never want LF-converted.
* text=auto eol=lf
# Shell + container scripts that must run under sh / bash / alpine.
*.sh text eol=lf
*.bash text eol=lf
Makefile text eol=lf
Dockerfile text eol=lf
Dockerfile* text eol=lf
.dockerignore text eol=lf
# YAML / TOML / JSON config (compose, github actions, package
# manifests). Some Windows editors silently emit CRLF; this pins LF.
*.yaml text eol=lf
*.yml text eol=lf
*.toml text eol=lf
*.json text eol=lf
# Go source — gofmt already enforces LF, but the explicit declaration
# protects against an IDE editing a file outside the gofmt pipeline.
*.go text eol=lf
# Documentation.
*.md text eol=lf
# Binary types — Git won't try to munge these.
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.svg text eol=lf
*.ico binary
*.pdf binary
*.zip binary
*.tar.gz binary
*.tgz binary
*.gz binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.vsix binary
*.wheel binary
*.whl binary