-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
22 lines (19 loc) · 1.13 KB
/
Copy path.gitattributes
File metadata and controls
22 lines (19 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Repository line-ending policy.
#
# Without this file, git's default core.autocrlf=true on Windows checkouts
# converts LF -> CRLF for files heuristically detected as text — which silently
# corrupts test-fixture bytes and breaks parity tests on the Windows CI leg.
# Symptom: 16 / 42 UpstreamParityIT failures observed on windows-latest before
# this file was added; macOS + Linux were green because their default is LF.
# --- Default: enforce LF on every platform for source + docs ---
* text=auto eol=lf
# --- Test fixtures: literal bytes, no line-ending conversion ---
# The model identifies bytes. The .expected.json sidecars were generated by
# upstream Python against the LF-source bytes. Even fixtures detected as text
# (e.g. small .bin files that happen to be ASCII) MUST NOT be converted, or
# the parity-byte invariant breaks.
src/test/resources/fixtures/** -text
# --- Bundled ONNX model + vendored configs: binary resources ---
# The model SHA-256 is enforced at load (ModelLoadException on mismatch), but
# this is defense in depth — git should never modify these regardless.
src/main/resources/dev/jcputney/magika/models/** -text