2 ms·
You'll probably enjoy the patience or histogram diff algorithms. See https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of-the-git-diff-algorithms/ https
by yencabulator 3y ago
You'll probably enjoy the patience or histogram diff algorithms. See https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of-the-git-diff-algorithms/ https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of... for more.
[diff]
algorithm = "histogram"
You can also teach git to always show e.g. function names in the diff hunk heading. For example, to always show previous Markdown heading:
~/.config/git/config
[diff "markdown"]
xfuncname = "^(#+\\s*.*)"
~/.config/git/attributes
*.md diff=markdown whitespace=-blank-at-eol
- hibbelig 3y agoThank you; I have configured histogram and we will see.