Remove tags file warning

This was the last thing triggering the autoload file before using an
actual Fugitive feature.
This commit is contained in:
Tim Pope
2020-01-24 17:24:35 -05:00
parent cd7db1d57c
commit 4637aca145
2 changed files with 1 additions and 13 deletions

View File

@@ -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

View File

@@ -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