Make :Gdiffsplit! from common ancestor stage open ours and theirs

References https://github.com/tpope/vim-fugitive/issues/1706
This commit is contained in:
Tim Pope
2021-03-18 22:17:34 -04:00
parent 0858688120
commit 99fccd08e2

View File

@@ -4999,7 +4999,7 @@ function! fugitive#Diffsplit(autodir, keepfocus, mods, arg, args) abort
let back = exists('*win_getid') ? 'call win_gotoid(' . win_getid() . ')' : 'wincmd p'
if (empty(args) || args[0] ==# ':') && a:keepfocus
exe s:DirCheck()
if empty(commit) && s:IsConflicted()
if commit =~# '^1\=$' && s:IsConflicted()
let parents = [s:Relative(':2:'), s:Relative(':3:')]
elseif empty(commit)
let parents = [s:Relative(':0:')]