From 3aee51ca3e7f721758c7884593e817ed535714da Mon Sep 17 00:00:00 2001 From: Daniel Covington Date: Sat, 7 Nov 2026 19:03:35 -0500 Subject: [PATCH] Add .gitattributes marking PDFs and C64 images as binary vim-user-guide.pdf has no NUL bytes, so git auto-detected it as text and core.autocrlf rewrote its line endings on checkout, corrupting it. Mark PDF, PNG, PRG, BIN, and D64/D71/D81 files binary so they are never converted. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..351ffdb --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# Never apply line-ending conversion to binary files. A PDF with no NUL bytes +# is otherwise auto-detected as text and corrupted by core.autocrlf. +*.pdf binary +*.png binary +*.prg binary +*.bin binary +*.d64 binary +*.d71 binary +*.d81 binary