Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to configure the diff in gitk?

Tags:

git

git-diff

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.

like image 752
Martin G Avatar asked Oct 22 '25 05:10

Martin G


1 Answers

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

like image 86
knittl Avatar answered Oct 23 '25 21:10

knittl