From 1b3668b89fee230c6025dc47c01c82fc1e282ac0 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Thu, 4 Apr 2019 14:28:15 -0400 Subject: [PATCH] Allow --abbrev as :Gblame argument (#1243) --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index ceeed51..6d3b246 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3735,7 +3735,7 @@ function! s:Blame(bang, line1, line2, count, mods, args) abort if empty(s:Relative('/')) call s:throw('file or blob required') endif - if filter(copy(a:args),'v:val !~# "^\\%(--relative-date\\|--first-parent\\|--root\\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != [] + if filter(copy(a:args),'v:val !~# "^\\%(--abbrev=\\d*\\|--relative-date\\|--first-parent\\|--root\\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != [] call s:throw('unsupported option') endif call map(a:args,'s:sub(v:val,"^\\ze[^-]","-")')