motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit ea588a104c8370a5dbe29acd2b27f5cace86c2c3 (tree)
parent 2b9faa8c7fb90ac89b4b78a5017807d74bcf3e2a
Author: Tim Pope <code@tpope.net>
Date:   Wed, 28 Jul 2010 14:41:11 -0400

Point 'tags' at .git/tags

Diffstat:
Mplugin/fugitive.vim | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -132,10 +132,13 @@ function! s:Detect(path) if exists('b:git_dir') silent doautocmd User Fugitive cnoremap <expr> <buffer> <C-R><C-G> fugitive#buffer().rev() + let buffer = fugitive#buffer() if expand('%:p') =~# '//' - let buffer = fugitive#buffer() call buffer.setvar('&path',s:sub(buffer.getvar('&path'),'^\.%(,|$)','')) endif + if b:git_dir !~# ',' && stridx(buffer.getvar('&tags'),b:git_dir) == -1 + call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir) + endif endif endfunction