7 Commits
Author SHA1 Message Date
Mike Kaganski 4a0546c770 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 <mike.kaganski@collabora.com>
2025-09-29 11:13:30 +02:00
Stephan Bergmann 9ea2483c20 SVG is a textual XML format after all
When researching <https://gerrit.libreoffice.org/c/core/+/136350> "Make
CppunitTest_svgio CPPUNIT_TEST_NAME=Test::testCssClassRedefinition robust", I
was genuinely puzzled that git treated .svg files as binary data, until I
discovered 93e425cda7 ".gitattributes: treat .svg
and .jcs as binary".  I don't consider its rationale of "this is apparently the
only way to prevent results from endless base64 encoded lines (svg) [...] in
'git grep foo'" convincing enough, compared to the puzzlement and inconvenience
it causes when you do want to grep for the content of SVG files.

(I didn't experience similar issues with .jcs files, so leave that alone for
now.))

Change-Id: I1b1f4aa92f7a538408e246080cdd415e109d2002
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136351
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-06-24 16:36:36 +02:00
Thorsten Behrens 34dced99c3 Ignore schema files for src tarball generation
Change-Id: I1aeafbe35f7badb6c59eddf79de4e96229b66886
Reviewed-on: https://gerrit.libreoffice.org/28494
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-08-30 23:59:15 +00:00
Michael Stahl 93e425cda7 .gitattributes: treat .svg and .jcs as binary
this is apparently the only way to prevent results from endless base64
encoded lines (svg) or endless line containing all UNO API identifiers
(jcs) in "git grep foo".

Change-Id: I53326386ece9dbde0fb372d1616e643a89d51a40
2013-09-05 22:35:00 +02:00
Andras Timar 066300b5aa use git hook instead of gitattributes filter for *.po files 2011-04-27 21:13:12 +02:00
Andras Timar a5ca1dcb91 set .gitattributes filter for *.po files 2011-03-23 19:23:49 +01:00
Miklos Vajna e175056684 Introduce a single .gitattributes file in bootstrap 2011-03-16 11:08:46 +01:00