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 90cbbf58549e541bf2567b69078735c5cc250fc3 (tree)
parent 87c1bda4d5573185a1f79c42a919c4b62bc34c42
Author: Tim Pope <code@tpope.net>
Date:   Sun,  2 Apr 2017 17:04:02 -0400

Make unrecognized git type error more informative

Diffstat:
Mplugin/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -2662,7 +2662,7 @@ function! s:BufReadObject() abort let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash) endif if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$' - return "echoerr 'fugitive: unrecognized git type'" + return "echoerr ".string("fugitive: unrecognized git type '".b:fugitive_type."'") endif let firstline = getline('.') if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob'