commit e48cf2dadd7dd02db710dc35d22caec72e41ac05 (tree)
parent 6d497b0e63173f89cfabe12ea27a7a5a8b29ac8a
Author: Daniel Hahler <git@thequod.de>
Date: Sun, 18 Nov 2018 10:16:08 +0100
Gblame: allow passing `--first-parent`
Also fixes the filter for `--root` and `--show-name`.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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[^-]","-")')