From daccfb508ffb00d4635cd9988a6e8487d34247ac Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 9 Oct 2012 16:24:31 -0400 Subject: [PATCH] Update :Gblame supported options --- doc/fugitive.txt | 2 +- plugin/fugitive.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/fugitive.txt b/doc/fugitive.txt index d7038e7..c617b55 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -171,7 +171,7 @@ that are part of Git repositories). :Gblame [flags] Run git-blame on the file and open the results in a scroll bound vertical split. Press enter on a line to 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 the cursor line commit where sensible, are provided: diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 2dea6ed..6b8fe65 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1562,7 +1562,7 @@ function! s:Blame(bang,line1,line2,count,args) abort if s:buffer().path() == '' call s:throw('file or blob required') 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') endif call map(a:args,'s:sub(v:val,"^\\ze[^-]","-")')