From 4a0546c770afe1542f4fc4ec9890f9d6b17d85ce Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 29 Sep 2025 09:55:22 +0200 Subject: [PATCH] Add more document types to .gitattributes Marking binary document types as such prevents errors that I see locally, like $ git log -S getWordCompatibilityMode E: unsupported filetype sw/qa/uitest/data/tdf168070_2.docx fatal: unable to read files to diff This also speeds up the search. RTF files are marked 'diff', because they could in theory be considered plaintext markup; maybe marking them also binary would be better. Having them here helps prevents this: E: unsupported filetype C:\Users\mikek\AppData\Local\Temp/git-blob-a26856/CVE-2005-2971-1.rtf fatal: unable to read files to diff Change-Id: I5da14b041f828e2ed1ff6c0acc9722e252802ef9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191591 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitattributes b/.gitattributes index bb2e57ffbb3d..c825eb2621ee 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,13 @@ *.doc binary +*.ppt binary +*.xls binary *.sdw binary *.jcs binary +*.docx binary +*.ppts binary +*.xlsx binary +*.odp binary +*.ods binary +*.odt binary +*.rtf diff schema/*/* export-ignore