summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2025-02-28 14:33:48 +0100
committerTobias Klauser <tklauser@distanz.ch>2025-02-28 14:33:48 +0100
commit89613f8331b47458c8bd386cf093a717d693c664 (patch)
tree8b4c0909bb8f67c3aecb1b1283267a590a593b3e
parent4bc67ab87d5e8cfd8c60d2469af8706f829c4166 (diff)
.gitconfig: update diff optionsHEADmaster
Better diff algorithm, show code movement in different color and detect renames. Mostly taken from https://blog.gitbutler.com/how-git-core-devs-configure-git/ Thanks to Quentin for the link.
-rw-r--r--.gitconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index 9d0ffe2..fe8fa89 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -49,6 +49,11 @@
whitespace = red reverse
[commit]
gpgsign = true
+[diff]
+ renamelimit = 0
+ algorithm = histogram
+ colorMoved = plain
+ renames = true
[fetch]
prune = true
[push]