From 1a3c04585b76d81390a2281467de5870a86563c7 Mon Sep 17 00:00:00 2001 From: bennyyip Date: Fri, 22 Feb 2019 12:04:53 +0800 Subject: [PATCH] Gblame: allow passing `--relative-date` --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 9e03c7c..9ac877f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3727,7 +3727,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 !~# "^\\%(--first-parent\\|--root\\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != [] + if filter(copy(a:args),'v:val !~# "^\\%(--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[^-]","-")')