git diff*.texを除くすべてのファイルの通常の差分を出力したいと思います。* .texファイルの場合、。の出力を確認したいと思いますgit diff --word-diff。
.gitattributesとで遊んで.gitconfigいましたが、最も遠いのは、1つの.texファイルの部分的な表示を取得した後、クラッシュすることでした。
この振る舞いをすることは可能ですか?
私の.gitattributes:
*.tex diff=latex
.gitconfig:
[diff "latex"]
wordRegex = "\\\\[a-zA-Z]+|[{}]|\\\\.|[^\\{}[:space:]]+"
command = ~/bin/word-diff.sh
およびword-diff.sh:
#!/bin/sh
git --no-pager diff --color-words "$2" "$5"