4 ms·
TL;DR Use the Histogram diff algorithm in Git
by hervature 7y ago
TL;DR Use the Histogram diff algorithm in Git
- samatman 7y agotl;dr `git config --global diff.algorithm histogram`
- Groxx 7y agoWith pretty compelling examples showing Meyers (default) behavior that I've encountered many times. Nice. Yea, a fairly accurate TL;DR.
- allan_s 7y agodoes someone know if it's possible to activate it in gitlab web diff of a merge request ?
- leipert 7y agoMhm. I would need to dive into our implementation. I don’t know whether we reimplement diffing algorithms in GitLab or rely on git internals here. [0] I am my phone, so I cannot check, but my two assumptions would be: Wr might use the default so that people have a match to what they see if they are diffing on their computers. And if it is confuigurable, probably just on an instance level, so you need to run GitLab yourself and not dot com Again just assumptions, will double check tomorrow. [0]: https://docs.gitlab.com/ee/administration/gitaly/ https://docs.gitlab.com/ee/administration/gitaly/
- fwip 7y agoI prefer using 'patience' most of the time, but it is slow on very large files.