Fix :Glog with diff.noprefix set

Closes https://github.com/tpope/vim-fugitive/issues/606
This commit is contained in:
Tim Pope
2019-08-16 07:07:33 -04:00
parent 86c276d629
commit b6dbe402e8

View File

@@ -3850,7 +3850,7 @@ function! s:Log(type, bang, line1, count, args, legacy) abort
endif endif
let cmd = ['--no-pager'] let cmd = ['--no-pager']
if fugitive#GitVersion(1, 9) if fugitive#GitVersion(1, 9)
call extend(cmd, ['-c', 'diff.context=0', 'log']) call extend(cmd, ['-c', 'diff.context=0', '-c', 'diff.noprefix=false', 'log'])
else else
call extend(cmd, ['log', '-U0', '--no-patch']) call extend(cmd, ['log', '-U0', '--no-patch'])
endif endif