parent
b0e38f08dc
commit
c2908b174d
@ -1176,13 +1176,15 @@ function! s:Merge(cmd, bang, args) abort
|
|||||||
\ !empty(s:repo().git_chomp('diff-files', '--diff-filter=U')))
|
\ !empty(s:repo().git_chomp('diff-files', '--diff-filter=U')))
|
||||||
let &l:makeprg = g:fugitive_git_executable.' diff-files --name-status --diff-filter=U'
|
let &l:makeprg = g:fugitive_git_executable.' diff-files --name-status --diff-filter=U'
|
||||||
else
|
else
|
||||||
let &l:makeprg = s:sub(g:fugitive_git_executable.' -c core.editor=false '.
|
let &l:makeprg = s:sub(g:fugitive_git_executable . ' ' . a:cmd .
|
||||||
\ a:cmd . (a:args =~# ' \%(--no-edit\|--abort\|-m\)\>' ? '' : ' --edit') . ' ' . a:args,
|
\ (a:args =~# ' \%(--no-edit\|--abort\|-m\)\>' ? '' : ' --edit') .
|
||||||
\ ' *$', '')
|
\ ' ' . a:args, ' *$', '')
|
||||||
endif
|
endif
|
||||||
if !empty($GIT_EDITOR)
|
if !empty($GIT_EDITOR) || has('win32')
|
||||||
let old_editor = $GIT_EDITOR
|
let old_editor = $GIT_EDITOR
|
||||||
let $GIT_EDITOR = 'false'
|
let $GIT_EDITOR = 'false'
|
||||||
|
else
|
||||||
|
let &l:makeprg = 'env GIT_EDITOR=false ' . &l:makeprg
|
||||||
endif
|
endif
|
||||||
execute cd fnameescape(s:repo().tree())
|
execute cd fnameescape(s:repo().tree())
|
||||||
silent noautocmd make!
|
silent noautocmd make!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user