Fix :Glog

Closes https://github.com/tpope/vim-fugitive/issues/1059
This commit is contained in:
Tim Pope
2018-07-20 22:06:22 -04:00
parent 8c076e3f68
commit c118dabb89

View File

@@ -1516,7 +1516,7 @@ function! s:Log(cmd, line1, line2, ...) abort
let dir = getcwd()
try
execute cd s:fnameescape(s:repo().tree())
let &grepprg = escape(s:git_command() + join(map(cmd, '" ".s:shellesc(v:val)'), ''), '%#')
let &grepprg = escape(s:git_command() . join(map(cmd, '" ".s:shellesc(v:val)'), ''), '%#')
let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f::%m,%-G%.%#'
exe a:cmd
finally