Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set diff options (--compaction-heuristic) in gitk

Tags:

git

git-diff

gitk

The git 2.9 release came with an experimental diff algorithm --compaction-heuristic. I've set up git, and git gui to use this.

However I can't figure out how to configure gitk to use this option. I'm aware of the .gitk config file, but I can't figure out how configure diff options.

like image 778
crea1 Avatar asked Jan 20 '26 10:01

crea1


1 Answers

Setting diff.compactionHeuristic true in your git config should be picked up by gitk.

git config --global diff.compactionHeuristic true
like image 74
robotroll Avatar answered Jan 23 '26 03:01

robotroll



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!