mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -05:00
Remove tags file warning
This was the last thing triggering the autoload file before using an actual Fugitive feature.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user