mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
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:
@@ -156,6 +156,12 @@ endfunction
|
|||||||
" are using this in conjunction with system(), consider using
|
" are using this in conjunction with system(), consider using
|
||||||
" FugitiveExecute() instead.
|
" FugitiveExecute() instead.
|
||||||
function! FugitivePrepare(...) abort
|
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)
|
return call('fugitive#ShellCommand', a:000)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user