Use this trick:
- Install
odt2txt(Linux:sudo apt-get install odt2txt, Mac:brew install odt2txt). Add to
.gitattributes:*.odt diff=odtAnd to
.gitconfig:[diff "odt"] textconv = odt2txt binary = trueOf 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
logof 20 last commits I use$ git --no-pager log --max-count=20 -p --word-diff=colorAnd for
diff:$ git --no-pager diff --word-diff=colorProbably, there should be another trick, to keep the words unsplit, but I haven’t figured it out yet.