Gblame: allow passing --relative-date

This commit is contained in:
bennyyip
2019-02-22 12:04:53 +08:00
committed by Tim Pope
parent ad32eae7e2
commit 1a3c04585b

View File

@@ -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[^-]","-")')