Support -L in :Glog errorformat

References #507.
This commit is contained in:
Tim Pope 2014-06-24 12:09:29 -04:00
parent df103dc595
commit 4581cd4217

View File

@ -1132,7 +1132,7 @@ function! s:Log(cmd, count, ...) abort
try
execute cd.'`=s:repo().tree()`'
let &grepprg = escape(call(s:repo().git_command,cmd,s:repo()),'%#')
let &grepformat = '%f:%l::%m,%f:::%m'
let &grepformat = '%f:%l::%m,%A%f:::%m,%Cdiff --git %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G%.%#'
exe a:cmd
finally
let &grepformat = grepformat