Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
47 lines (39 loc) · 1.99 KB
/
Copy path.gitattributes
File metadata and controls
47 lines (39 loc) · 1.99 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
# Every text file is LF in the repository, in checkouts and in `git archive`
# output, whatever the local core.autocrlf says. Git for Windows defaults to
# core.autocrlf=true, which turned Python, JavaScript and other unpinned files
# into CRLF in Windows checkouts and archives, so they no longer matched the
# bytes users download. The rules below override this one where needed.
* text=auto eol=lf
# Force LF line endings for all shell scripts and Docker-mounted files.
# Windows Git's core.autocrlf converts LF→CRLF on checkout, which breaks
# shell shebangs inside Linux Docker containers (kernel reads #!/bin/sh\r
# and fails with "no such file or directory").
*.sh text eol=lf
*.bash text eol=lf
ods/ods-cli text eol=lf
Dockerfile* text eol=lf
docker-entrypoint* text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.env text eol=lf
*.shellcheckrc text eol=lf
# Source patches are hash-bound build inputs; checkout/archive must preserve LF.
ods/extensions/services/pixel-agent/runtime-source/*.patch text eol=lf
# Recorded preview snapshots reproduce a published digest byte for byte.
ods/tests/fixtures/preview-controls/** -text -whitespace
# Vendored llama.cpp chat templates are byte copies whose SHA-256 the manifest,
# the template index and llama.cpp's /props all record; keep upstream's bytes.
ods/config/chat-templates/upstream-*/** -text -whitespace
# PowerShell scripts can use CRLF (native Windows)
*.ps1 text eol=crlf
*.psm1 text eol=crlf
*.psd1 text eol=crlf
# Captured tool-output fixtures preserve real upstream formatting
# (column padding, trailing whitespace from rocm-smi/amd-smi/etc).
# Don't let `git diff --check` flag intentional whitespace as an error.
ods/tests/fixtures/amd/*.txt -whitespace
# Recorded preview pages reproduce a published snapshot digest byte for byte.
ods/tests/fixtures/preview-inspection-laptop-round*.html -text -whitespace
# Exact third-party Vane bundle fixture is hash-bound and not a reviewable diff.
ods/tests/fixtures/vane-v1.12.2-*.js -text -diff