trilium/.gitattributes
Elian Doran d6f5a042ef
Some checks failed
Checks / main (push) Has been cancelled
fix(patches): pin patches/ to eol=lf for pnpm 12's diff parser
pnpm 12 swapped the JS patch-applier for a Rust one that rejects a carriage
return in a diff's file-header line ("invalid char in unquoted filename"),
so `pnpm install` aborts with ERR_PNPM_INVALID_PATCH before linking anything.
The patch blobs are committed LF, but a Windows checkout with
core.autocrlf=true rewrites them to CRLF and .gitattributes had no rule for
patches/. pnpm 11's parser tolerated the CR; Linux CI is unaffected, which is
why #11365 stayed green.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 11:33:01 +02:00

28 lines
870 B
Plaintext

# Mark files as auto-generated to simplify reviews.
package-lock.json linguist-generated=true
**/package-lock.json linguist-generated=true
apps/server/src/assets/doc_notes/en/User[[:space:]]Guide/** linguist-generated
# Ignore from GitHub language stats.
apps/server/src/assets/doc_notes/en/User[[:space:]]Guide/**/*.html eol=lf
apps/server/src/assets/doc_notes/** linguist-vendored=true
apps/edit-docs/demo/** linguist-vendored=true
docs/** linguist-vendored=true
# Normalize line endings.
patches/** eol=lf
docs/**/*.md eol=lf
docs/**/*.json eol=lf
demo/**/*.html eol=lf
demo/**/*.json eol=lf
demo/**/*.svg eol=lf
demo/**/*.txt eol=lf
demo/**/*.js eol=lf
demo/**/*.css eol=lf
*.sh eol=lf
# Always diff TypeScript sources as text so a stray control byte (e.g. a NUL in
# a string literal) doesn't make Git/GitHub treat the whole file as binary.
*.ts diff
*.tsx diff