mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Don't show tags warning when editing commit message
This commit is contained in:
@@ -5895,7 +5895,7 @@ function! fugitive#Init() abort
|
||||
exe s:DoAutocmd('User FugitiveBoot')
|
||||
endif
|
||||
let dir = s:Dir()
|
||||
if stridx(&tags, escape(dir, ', ')) == -1 && &tags !~# '\.git' && !exists('s:tags_warning')
|
||||
if &tags !~# '\.git' && @% !~# '\.git' && !exists('s:tags_warning')
|
||||
let actualdir = fugitive#Find('.git/', dir)
|
||||
if filereadable(actualdir . 'tags')
|
||||
let s:tags_warning = 1
|
||||
|
||||
Reference in New Issue
Block a user