mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Report error checking for merge conflict
References https://github.com/tpope/vim-fugitive/issues/756
This commit is contained in:
@@ -2567,6 +2567,9 @@ function! s:Diff(vert,keepfocus,...) abort
|
||||
if exists(':DiffGitCached')
|
||||
return 'DiffGitCached'
|
||||
elseif (empty(args) || args[0] ==# ':') && commit =~# '^[0-1]\=$' && !empty(s:TreeChomp('ls-files', '--unmerged', '--', s:Relative('')))
|
||||
if v:shell_error
|
||||
return 'echoerr ' . string("fugitive: error determining merge status of " . s:Relative(''))
|
||||
endif
|
||||
let vert = empty(a:vert) ? s:diff_modifier(3) : a:vert
|
||||
let nr = bufnr('')
|
||||
execute 'leftabove '.vert.'split' s:fnameescape(s:Generate(s:Relative(':2:')))
|
||||
|
||||
Reference in New Issue
Block a user