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 2a817bb53a8d0fc14762d345527a7fd5ac8d57cc (tree)
parent 38c69cfebcd9e5614c2abb2bd2d79be453ceddaf
Author: Tim Pope <code@tpope.net>
Date:   Mon, 25 Jun 2018 18:03:02 -0400

Fix :Gbrowse tagname

Diffstat:
Mautoload/fugitive.vim | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2222,6 +2222,9 @@ function! s:Browse(bang,line1,count,...) abort else let expanded = s:buffer().expand(rev) endif + if filereadable(s:repo().tree('refs/tags/' . expanded)) + let expanded = 'refs/tags/' . expanded + endif let full = s:repo().translate(expanded) let commit = '' if full =~? '^fugitive:'