Recently faced the same problem.
From https://git-scm.com/docs/gitattributes:
A textconv, by comparison, is much more limiting. You provide a transformation of the data into a line-oriented text format, and Git uses its regular diff tools to generate the output.
Simply put, textconv only works for the regular git diff, not for difftool.
To make difftool work, put the below into $HOME/.gitconfig:
[difftool "docx"]
cmd = t1=`mktemp` && `pandoc -t plain $LOCAL >$t1` && t2=`mktemp` && `pandoc -t plain $REMOTE >$t2` && meld $t1 $t2 && rm -f $t1 $t2
Now you can run:
$ git difftool --tool docx
The above uses pandoc for docx to text conversion and meld as an external diff.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…