From e1ea9e43855823dbec6eaf284cff54e9fabf5d5b Mon Sep 17 00:00:00 2001 From: Alpaq92 Date: Thu, 25 Jun 2026 23:38:17 +0200 Subject: [PATCH] chore: add .gitattributes marking binary assets core.autocrlf=true would otherwise rewrite LF->CRLF in checked-out binaries (the uncompressed sample PDFs especially), corrupting their byte offsets. Mark PDFs, images, fonts, e-books and Office files as binary so git leaves them alone. Co-Authored-By: Claude Opus 4.8 --- .gitattributes | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a396e03 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,34 @@ +# Binary assets — never apply line-ending conversion (it corrupts byte offsets, +# e.g. in uncompressed PDFs and font/image tables). +*.pdf binary +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.webp binary +*.avif binary +*.bmp binary +*.ico binary +*.tif binary +*.tiff binary +*.djvu binary +*.djv binary +*.epub binary +*.mobi binary +*.azw3 binary +*.fb2 binary +*.cbz binary +*.cbr binary +*.cbt binary +*.docx binary +*.doc binary +*.xlsx binary +*.pptx binary +*.odt binary +*.ods binary +*.odp binary +*.woff binary +*.woff2 binary +*.ttf binary +*.otf binary +*.wasm binary