Remove 'tags' support

This commit is contained in:
Tim Pope
2019-09-03 21:40:14 -04:00
parent 522d3d3c1e
commit 63a05a6935

View File

@@ -5851,13 +5851,13 @@ function! fugitive#Init() abort
let &l:path = s:sub(&path, '^\.%(,|$)', '') let &l:path = s:sub(&path, '^\.%(,|$)', '')
endif endif
let dir = s:Dir() let dir = s:Dir()
if stridx(&tags, escape(dir, ', ')) == -1 if stridx(&tags, escape(dir, ', ')) == -1 && &tags !~# '\.git' && !exists('s:tags_warning')
let actualdir = fugitive#Find('.git/', dir) let actualdir = fugitive#Find('.git/', dir)
if filereadable(actualdir . 'tags') if filereadable(actualdir . 'tags')
let &l:tags = escape(actualdir . 'tags', ', ').','.&tags let s:tags_warning = 1
endif echohl WarningMsg
if &filetype !=# '' && filereadable(actualdir . &filetype . '.tags') echo "Fugitive has removed .git/tags support in favor of `:set tags^=./.git/tags;`"
let &l:tags = escape(actualdir . &filetype . '.tags', ', ').','.&tags echohl NONE
endif endif
endif endif
try try