mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Remove 'tags' support
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user