Add deprecation warning to FugitivePrepare()

I am eager to reclaim this verb, so let's deprecate sooner rather than
later.
This commit is contained in:
Tim Pope
2021-08-20 00:34:01 -04:00
parent de02a4ba84
commit 74b0960f5b

View File

@@ -156,6 +156,12 @@ endfunction
" are using this in conjunction with system(), consider using
" FugitiveExecute() instead.
function! FugitivePrepare(...) abort
if !exists('s:did_prepare_warning')
let s:did_prepare_warning = 1
echohl WarningMsg
unsilent echomsg 'FugitivePrepare() has been superseded by FugitiveShellCommand()'
echohl NONE
endif
return call('fugitive#ShellCommand', a:000)
endfunction