Search code examples
gitgit-diffgitk

Is it possible to configure the diff in gitk?


When clicking a file in gitk it is compared to the previous version of this file. It looks like the files are compared with git diff, and it's possible to configure very few parameters (basically the number of lines to view around each diff, "Lines of context").

Is it possible to somehow configure the diff of gitk further? I would like it to run git diff --word-diff=color instead of git diff when i click a file. Would something like that be possible?

If it is the setting is pretty well hidden.


Solution

  • The dropdown to choose this option is right above the diff pane on the right. Default is "line diff", you want "color words"