mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 23:33:43 -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
|
" Section: Initialization
|
||||||
|
|
||||||
function! fugitive#Init() abort
|
function! fugitive#Init() abort
|
||||||
let dir = s:Dir()
|
throw 'Third party code is using fugitive#Init() which has been removed. Contact the author if you have a reason to still use it'
|
||||||
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
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#is_git_dir(path) abort
|
function! fugitive#is_git_dir(path) abort
|
||||||
|
|||||||
@@ -279,9 +279,6 @@ function! FugitiveDetect(path) abort
|
|||||||
let b:git_dir = dir
|
let b:git_dir = dir
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if exists('b:git_dir')
|
|
||||||
return fugitive#Init()
|
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! FugitiveVimPath(path) abort
|
function! FugitiveVimPath(path) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user