[GIT] Slim delta, colorMoved, section hunk headers, wsdiff alias

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fabian IsingandClaude Opus 5.5 committed 2026-10-20 12:34:53 +02:00
1 parent 015027ed3b
commit 6ec88700a6
2 files changed
+24

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
# hunk headers show the enclosing heading/section
*.md diff=markdown
gitconfig diff=ini
*.gitconfig diff=ini
*.ini diff=ini
*.toml diff=ini
+18
View File
@@ -26,6 +26,7 @@ email = github@murgi.de
path = ~/dotfiles/gitconfig/sit.gitconfig
[core]
excludesfile = ~/dotfiles/.gitignore_global
attributesfile = ~/dotfiles/gitconfig/attributes
pager = delta
[submodule]
recurse = true
@@ -40,5 +41,22 @@ email = github@murgi.de
rebase = true
[interactive]
diffFilter = delta --color-only
[diff]
colorMoved = default
[delta]
navigate = true
; plain look: +/- markers, line backgrounds (auto light/dark), no syntax colors
keep-plus-minus-markers = true
syntax-theme = none
file-style = bold
file-decoration-style = none
hunk-header-style = file syntax
hunk-header-decoration-style = none
tabs = 4
line-numbers = true
line-numbers-left-format =
line-numbers-right-format = "{np:>4} "
[diff "ini"]
xfuncname = "^\\[.*\\]"
[alias]
wsdiff = -c pager.diff='less -R' -c color.diff.old='red reverse' -c color.diff.new='green reverse' diff --word-diff=color --word-diff-regex='[^[:space:]]+|[[:space:]]+'