Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
单击 gitk 中的文件时,会将其与该文件的先前版本进行比较。看起来这些文件与 git diff 进行了比较,并且可以配置很少的参数(基本上是每个 diff 周围要查看的行数,“上下文行”)。
是否有可能以某种方式进一步配置 gitk 的差异?我希望它在单击文件时运行 git diff --word-diff=color 而不是 git diff 。这样的事情可能吗?
如果是设置,则隐藏得很好。
选择此选项的下拉菜单位于右侧差异窗格的正上方。默认是“line diff”,你想要“color words”