mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Fix :Git merge
Resolves: https://github.com/tpope/vim-fugitive/issues/1817
This commit is contained in:
@@ -4936,8 +4936,8 @@ endfunction
|
|||||||
|
|
||||||
function! s:MergeSubcommand(line1, line2, range, bang, mods, options) abort
|
function! s:MergeSubcommand(line1, line2, range, bang, mods, options) abort
|
||||||
if empty(a:options.subcommand_args) && (
|
if empty(a:options.subcommand_args) && (
|
||||||
\ filereadable(fugitive#Find('.git/MERGE_MSG', dir)) ||
|
\ filereadable(fugitive#Find('.git/MERGE_MSG', a:options)) ||
|
||||||
\ isdirectory(fugitive#Find('.git/rebase-apply', dir)) ||
|
\ isdirectory(fugitive#Find('.git/rebase-apply', a:options)) ||
|
||||||
\ !empty(s:TreeChomp([a:options.git_dir, 'diff-files', '--diff-filter=U'])))
|
\ !empty(s:TreeChomp([a:options.git_dir, 'diff-files', '--diff-filter=U'])))
|
||||||
return 'echoerr ":Git merge for loading conflicts hase been removed in favor of :Git mergetool"'
|
return 'echoerr ":Git merge for loading conflicts hase been removed in favor of :Git mergetool"'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user