add word diffs

This commit is contained in:
Motiejus Jakštys 2020-12-27 16:15:38 +02:00
parent 5099d49e87
commit 70aa4e6ed0
2 changed files with 13 additions and 0 deletions

10
.envrc Normal file
View File

@ -0,0 +1,10 @@
_pandocdiff="pandoc -t plain"
_catdocdiff="catdoc"
if [ "$(git config diff.pandocdiff.textconv)" != "$_pandocdiff" ]; then
git config diff.pandocdiff.textconv "$_pandocdiff"
fi
if [ "$(git config diff.catdocdiff.textconv)" != "$_catdocdiff" ]; then
git config diff.catdocdiff.textconv "$_catdocdiff"
fi

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
# diffing binary blobs
*.docx diff=pandocdiff
*.doc diff=catdocdiff