Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Git: mark PDFs, keys, fonts and images binary so Windows checkouts keep their bytes

Brandon Thomas8f1f4e7ffb76
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..4a67e8e06
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,9 @@
+# Byte-exact fixtures and assets: never convert line endings (Windows checkouts use
+# core.autocrlf=true, which changes the signed bytes of a PDF and breaks its signature).
+*.pdf binary
+*.p12 binary
+*.pem -text
+*.pfb binary
+*.ttf binary
+*.icc binary
+*.png binary