[Libreoffice] [PATCH] have git diff treat dictionaries/*.idx|dic|dat as binary

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Nov 1 07:35:52 PDT 2010


The git contributor script crunches through repos and invokes git to
gather data. However, the dictionaries are 100k lines of code changes
and git log --numstat literally works for hours on those commits.

All other LO git repos take about 5-10 minutes to
analyze. lib-extern-sys takes about 5 hours!

Treating those dictionaries as binary files has no side-effect other
than that git won't try to show a diff for those commits and
dictionary updater are no longer statistical outliers with 300kLOC
added in our contributor analysis.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 .gitattributes |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
 create mode 100644 .gitattributes

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..4750805
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+dictionaries/**/*.dic binary
+dictionaries/**/*.dat binary
+dictionaries/**/*.idx binary
-- 
1.7.1



More information about the LibreOffice mailing list