
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Raw binary assets — never apply text/EOL conversion. PPM golden references
# (tests/renderers/golden/*.ppm) are raw readRGBPixels bytes; with `* text=auto`
# + core.autocrlf=true, git misdetects a golden with no early NUL byte (e.g. the
# dark "emissive" scene) as text and rewrites its header LFs to CRLF on checkout.
# That shifts the binary pixel block by one byte in the test's PPM reader, so the
# whole image's R/G/B channels rotate — a spurious golden failure on Windows
# checkouts. Marking them binary (= -text -diff) keeps the checked-out bytes
# byte-identical to the committed blob.
*.ppm binary

# vcpkg applies port patches with git apply against the LF source tarball, so a
# patch checked out with CRLF line endings no longer applies.
*.patch text eol=lf
