git/nvim: Switch to using diffconflicts for resolving merge conflicts
While we dropped diffconflicts earlier and switch to vanilla vimdiff, two way merges are definitely better than three way merges. 3 way merge as in gina or vimdiff is extremely confusing except for may be the simplest of merge conflicts. conflict-marker and diffconflicts should let us handle all cases.
This commit is contained in:
parent
30aa34c9a3
commit
dfe44fb14c
2 changed files with 5 additions and 4 deletions
|
@ -18,15 +18,15 @@
|
||||||
[diff]
|
[diff]
|
||||||
colorMoved = default
|
colorMoved = default
|
||||||
[merge]
|
[merge]
|
||||||
tool = vimdiff
|
tool = diffconflicts
|
||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
ff = only
|
ff = only
|
||||||
[mergetool]
|
[mergetool]
|
||||||
prompt = false
|
prompt = false
|
||||||
[mergetool "vimdiff"]
|
|
||||||
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
|
|
||||||
trustExitCode = true
|
|
||||||
keepBackup = false
|
keepBackup = false
|
||||||
|
[mergetool "diffconflicts"]
|
||||||
|
cmd = 'nvim -c DiffConflicts "$MERGED" "$BASE" "$LOCAL" "$REMOTE"'
|
||||||
|
trustExitCode = true
|
||||||
[rebase]
|
[rebase]
|
||||||
autoStash = true
|
autoStash = true
|
||||||
[commit]
|
[commit]
|
||||||
|
|
|
@ -50,6 +50,7 @@ local init = function ()
|
||||||
use 'rhysd/git-messenger.vim'
|
use 'rhysd/git-messenger.vim'
|
||||||
use 'rhysd/conflict-marker.vim'
|
use 'rhysd/conflict-marker.vim'
|
||||||
use 'salcode/vim-interactive-rebase-reverse'
|
use 'salcode/vim-interactive-rebase-reverse'
|
||||||
|
use 'whiteinge/diffconflicts'
|
||||||
-- Boost vim command line mode
|
-- Boost vim command line mode
|
||||||
use 'vim-utils/vim-husk'
|
use 'vim-utils/vim-husk'
|
||||||
-- Rainbow Parentheses
|
-- Rainbow Parentheses
|
||||||
|
|
Loading…
Reference in a new issue