From 59a46d6185c7bc3ec027bb406ce50761cfecf71d Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 26 Apr 2024 15:10:04 +0200 Subject: [PATCH] feat: add git config Signed-off-by: kjuulh --- dot_gitconfig.tmpl | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 3d11f15..2d08b42 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -26,7 +26,7 @@ [url "git@github.com:lunarway"] insteadOf = https://github.com/lunarway [core] - pager = delta +# pager = delta excludeFiles = cover.cov excludeFile = cover.cov [push] @@ -35,15 +35,27 @@ [gpg] program = /opt/homebrew/bin/gpg {{ end }} -[interactive] - diffFilter = delta --color-only -[add.interactive] - useBuiltin = false # required for git 2.37.0 -[delta] - navigate = true # use n and N to move between diff sections - light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal) +#[interactive] +# diffFilter = delta --color-only +# [add.interactive] +# useBuiltin = false # required for git 2.37.0 +# [delta] +# navigate = true # use n and N to move between diff sections +# light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal) [merge] conflictstyle = diff3 + [diff] colorMoved = default + tool = difftastic + external = difft + +[difftool] + prompt = false + +[difftool "difftastic"] + cmd = difft "$LOCAL" "$REMOTE" + +[pager] + difftool = true