Git: add few bits to improve mergetool and diff

This commit is contained in:
Robert Kmieć
2023-08-17 23:44:27 +02:00
parent 89b4343ca1
commit 3729e67247

View File

@@ -21,10 +21,17 @@
smtpserver = smtp.gmail.com smtpserver = smtp.gmail.com
smtpuser = robert.r.kmiec@gmail.com smtpuser = robert.r.kmiec@gmail.com
smtpserverport = 587 smtpserverport = 587
[diff]
tool = vimdiff
[merge] [merge]
tool = vimdiff conflictstyle = diff3
tool = nfugitive
[mergetool "nfugitive"]
cmd = nvim -c "Gvdiffsplit!" "$MERGED"
[diff]
tool = nvimdiff
[difftool "nvimdiff"]
cmd = nvim -d "$LOCAL" "$REMOTE"
[diff "markdown"]
xfuncname = "^#+.*$"
[filter "lfs"] [filter "lfs"]
clean = git-lfs clean -- %f clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
@@ -33,7 +40,7 @@
[alias] [alias]
cm = commit cm = commit
co = checkout co = checkout
br = branch br = branch -vva
st = status st = status
d = diff d = diff
dc = diff --cached dc = diff --cached
@@ -58,6 +65,8 @@
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J' cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[init] [init]
defaultBranch = master defaultBranch = master
[diff "image"] #[diff "image"]
command = /home/kmcr/tools/git-diff-image/git_diff_image # command = /home/kmcr/tools/git-diff-image/git_diff_image
textconv = imgcat # textconv = imgcat
[advice]
detachedHead = false