Update :Gblame supported options
This commit is contained in:
parent
cdb7bd9841
commit
daccfb508f
@ -171,7 +171,7 @@ that are part of Git repositories).
|
|||||||
:Gblame [flags] Run git-blame on the file and open the results in a
|
:Gblame [flags] Run git-blame on the file and open the results in a
|
||||||
scroll bound vertical split. Press enter on a line to
|
scroll bound vertical split. Press enter on a line to
|
||||||
reblame the file as it was in that commit. You can
|
reblame the file as it was in that commit. You can
|
||||||
give any of ltwfsMC as flags and they will be passed
|
give any of ltfnsewMC as flags and they will be passed
|
||||||
along to git-blame. The following maps, which work on
|
along to git-blame. The following maps, which work on
|
||||||
the cursor line commit where sensible, are provided:
|
the cursor line commit where sensible, are provided:
|
||||||
|
|
||||||
|
@ -1562,7 +1562,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
|
|||||||
if s:buffer().path() == ''
|
if s:buffer().path() == ''
|
||||||
call s:throw('file or blob required')
|
call s:throw('file or blob required')
|
||||||
endif
|
endif
|
||||||
if filter(copy(a:args),'v:val !~# "^\\%(--root\|--show-name\\|-\\=\\%([ltwfs]\\|[MC]\\d*\\)\\+\\)$"') != []
|
if filter(copy(a:args),'v:val !~# "^\\%(--root\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != []
|
||||||
call s:throw('unsupported option')
|
call s:throw('unsupported option')
|
||||||
endif
|
endif
|
||||||
call map(a:args,'s:sub(v:val,"^\\ze[^-]","-")')
|
call map(a:args,'s:sub(v:val,"^\\ze[^-]","-")')
|
||||||
|
Loading…
Reference in New Issue
Block a user