forked from markaren/threepp
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitattributes
More file actions
16 lines (13 loc) · 793 Bytes
/
Copy path.gitattributes
File metadata and controls
16 lines (13 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Declare files that will always have LF line endings on checkout.
version.txt text eol=lf
# 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