From e48cf2dadd7dd02db710dc35d22caec72e41ac05 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 18 Nov 2018 10:16:08 +0100 Subject: [PATCH] Gblame: allow passing `--first-parent` Also fixes the filter for `--root` and `--show-name`. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 622a2d0..d8063a6 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2986,7 +2986,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 !~# "^\\%(--root\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != [] + if filter(copy(a:args),'v:val !~# "^\\%(--first-parent\\|--root\\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != [] call s:throw('unsupported option') endif call map(a:args,'s:sub(v:val,"^\\ze[^-]","-")')