Replace --no-patch with -s for Git < 1.8.4

Closes https://github.com/tpope/vim-fugitive/issues/1398
This commit is contained in:
Tim Pope
2019-11-12 21:31:36 -05:00
parent 1e57d678ba
commit 8c84ea6fdb

View File

@@ -3974,7 +3974,7 @@ function! fugitive#LogCommand(line1, count, range, bang, mods, args, type) abort
if fugitive#GitVersion(1, 9)
call extend(cmd, ['-c', 'diff.context=0', '-c', 'diff.noprefix=false', 'log'])
else
call extend(cmd, ['log', '-U0', '--no-patch'])
call extend(cmd, ['log', '-U0', '-s'])
endif
call extend(cmd,
\ ['--no-color', '--no-ext-diff', '--pretty=format:fugitive ' . format] +