使用 git 我可以在 .git/config
[diff "csv_diff"]
command = Tools/csv_diff
这在 .gitattributes
中(在存储库的根目录中)
*.csv diff=csv_diff
这在使用 git diff
时有效,但不适用于 git show
。我的问题是,如何通过 git show
使用自定义工具?
最佳答案
看起来您正在寻找 --ext-diff
选项。
这是git show
docs说说:
--ext-diff
Allow an external diff helper to be executed. If you set an external diff driver with
gitattributes
, you need to use this option withgit-log
and friends.
关于git - 使用带有 `git show` 的自定义差异工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34885397/