From 74b0960f5b222db694058991189a2beb9b943da0 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 20 Aug 2021 00:34:01 -0400 Subject: [PATCH] Add deprecation warning to FugitivePrepare() I am eager to reclaim this verb, so let's deprecate sooner rather than later. --- plugin/fugitive.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 759c5ad..de3a206 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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