From 63a05a6935ec4a45551bf141089c13d5671202a1 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 3 Sep 2019 21:40:14 -0400 Subject: [PATCH] Remove 'tags' support --- autoload/fugitive.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 1e4cc81..49ae456 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5851,13 +5851,13 @@ function! fugitive#Init() abort let &l:path = s:sub(&path, '^\.%(,|$)', '') endif 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) if filereadable(actualdir . 'tags') - let &l:tags = escape(actualdir . 'tags', ', ').','.&tags - endif - if &filetype !=# '' && filereadable(actualdir . &filetype . '.tags') - let &l:tags = escape(actualdir . &filetype . '.tags', ', ').','.&tags + let s:tags_warning = 1 + echohl WarningMsg + echo "Fugitive has removed .git/tags support in favor of `:set tags^=./.git/tags;`" + echohl NONE endif endif try