fix(git): graceful delta fallback when not installed

core.pager now checks for delta and falls back to less -R,
avoiding errors in environments where delta is not available.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-13 17:16:53 +00:00
parent 69860d2e48
commit 71748c2328

View File

@@ -18,7 +18,7 @@
[core] [core]
autocrlf = input autocrlf = input
pager = delta pager = "command -v delta >/dev/null 2>&1 && delta || less -R"
[interactive] [interactive]
diffFilter = delta --color-only diffFilter = delta --color-only