From 4637aca1452ab7ca8a18c37a0b6048952c711681 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 24 Jan 2020 17:24:35 -0500 Subject: [PATCH] Remove tags file warning This was the last thing triggering the autoload file before using an actual Fugitive feature. --- autoload/fugitive.vim | 11 +---------- plugin/fugitive.vim | 3 --- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f733e24..787849f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6303,16 +6303,7 @@ endfunction " Section: Initialization function! fugitive#Init() abort - let dir = s:Dir() - if &tags !~# '\.git' && @% !~# '\.git' && !exists('s:tags_warning') - let actualdir = fugitive#Find('.git/', dir) - if filereadable(actualdir . 'tags') - let s:tags_warning = 1 - echohl WarningMsg - echo "Fugitive .git/tags support removed in favor of `:set tags^=./.git/tags;`" - echohl NONE - endif - endif + throw 'Third party code is using fugitive#Init() which has been removed. Contact the author if you have a reason to still use it' endfunction function! fugitive#is_git_dir(path) abort diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index bd86b77..e0c5c74 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -279,9 +279,6 @@ function! FugitiveDetect(path) abort let b:git_dir = dir endif endif - if exists('b:git_dir') - return fugitive#Init() - endif endfunction function! FugitiveVimPath(path) abort