mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Make :Gdiffsplit! from common ancestor stage open ours and theirs
References https://github.com/tpope/vim-fugitive/issues/1706
This commit is contained in:
@@ -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'
|
let back = exists('*win_getid') ? 'call win_gotoid(' . win_getid() . ')' : 'wincmd p'
|
||||||
if (empty(args) || args[0] ==# ':') && a:keepfocus
|
if (empty(args) || args[0] ==# ':') && a:keepfocus
|
||||||
exe s:DirCheck()
|
exe s:DirCheck()
|
||||||
if empty(commit) && s:IsConflicted()
|
if commit =~# '^1\=$' && s:IsConflicted()
|
||||||
let parents = [s:Relative(':2:'), s:Relative(':3:')]
|
let parents = [s:Relative(':2:'), s:Relative(':3:')]
|
||||||
elseif empty(commit)
|
elseif empty(commit)
|
||||||
let parents = [s:Relative(':0:')]
|
let parents = [s:Relative(':0:')]
|
||||||
|
|||||||
Reference in New Issue
Block a user