Fix :Git merge

Resolves: https://github.com/tpope/vim-fugitive/issues/1817
This commit is contained in:
Tim Pope
2021-08-25 04:39:51 -04:00
parent e91d17ddc2
commit b07632a616

View File

@@ -4936,8 +4936,8 @@ endfunction
function! s:MergeSubcommand(line1, line2, range, bang, mods, options) abort
if empty(a:options.subcommand_args) && (
\ filereadable(fugitive#Find('.git/MERGE_MSG', dir)) ||
\ isdirectory(fugitive#Find('.git/rebase-apply', dir)) ||
\ filereadable(fugitive#Find('.git/MERGE_MSG', a:options)) ||
\ isdirectory(fugitive#Find('.git/rebase-apply', a:options)) ||
\ !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"'
endif