Use this trick:
- Install
odt2txt
(Linux:sudo apt-get install odt2txt
, Mac:brew install odt2txt
). Add to
.gitattributes
:*.odt diff=odt
And to
.gitconfig
:[diff "odt"] textconv = odt2txt binary = true
Of course it will work better if you have cloned this project :), and are fetching updates, and run commands like
log
. (But you should see the diffs even in GUI tools likegitk
.)To see the
log
of 20 last commits I use$ git --no-pager log --max-count=20 -p --word-diff=color
And for
diff
:$ git --no-pager diff --word-diff=color
Probably, there should be another trick, to keep the words unsplit, but I haven’t figured it out yet.