mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Replace --no-patch with -s for Git < 1.8.4
Closes https://github.com/tpope/vim-fugitive/issues/1398
This commit is contained in:
@@ -3974,7 +3974,7 @@ function! fugitive#LogCommand(line1, count, range, bang, mods, args, type) abort
|
|||||||
if fugitive#GitVersion(1, 9)
|
if fugitive#GitVersion(1, 9)
|
||||||
call extend(cmd, ['-c', 'diff.context=0', '-c', 'diff.noprefix=false', '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', '-s'])
|
||||||
endif
|
endif
|
||||||
call extend(cmd,
|
call extend(cmd,
|
||||||
\ ['--no-color', '--no-ext-diff', '--pretty=format:fugitive ' . format] +
|
\ ['--no-color', '--no-ext-diff', '--pretty=format:fugitive ' . format] +
|
||||||
|
|||||||
Reference in New Issue
Block a user