-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
35 lines (31 loc) · 1.7 KB
/
Copy path.gitattributes
File metadata and controls
35 lines (31 loc) · 1.7 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
# Normalize line endings to LF in the repository, check out native. Without this, a Windows
# checkout stores CRLF and every commit warns about it. (`devvit/.gitattributes` additionally
# pins LF in the *working tree* there, because Biome refuses to format CRLF.)
* text=auto
# wasm-pack output. LF in the WORKING TREE too, not just the index: the #39 artifact gate
# (`tests/solidPhase0.test.js`) hashes these files byte-for-byte to prove the third Wasm artifact
# costs the other two nothing, and "check out native" would hand a Windows clone CRLF glue and a
# hash mismatch that has nothing to do with the engine. Listed BEFORE the binary block below so
# `*.wasm binary` still wins for the binaries themselves — the last matching line sets the attribute.
src/core/wasm-engine/** text eol=lf
src/core/stochastic-wasm/** text eol=lf
src/core/solid-wasm/** text eol=lf
# Binary: never diff, never normalize.
*.wasm binary
*.gif binary
*.png binary
*.ico binary
*.webm binary
# Auto-detection happens to classify the current model as binary, but an ONNX protobuf without
# NUL bytes early would be CRLF-normalized on commit and ship a corrupt artifact.
*.onnx binary
# Generated, not authored. Keeps GitHub's language stats honest (the wasm-pack JS glue is ~9 KB
# of machine output that would otherwise read as hand-written source) and collapses these in
# pull-request diffs.
src/core/wasm-engine/** linguist-generated=true
src/core/stochastic-wasm/** linguist-generated=true
src/core/solid-wasm/** linguist-generated=true
package-lock.json linguist-generated=true
devvit/package-lock.json linguist-generated=true
# README media is documentation, not source.
docs/media/** linguist-documentation=true