commit 8d4b85ed09bb6711635670196682e97c657fb7be (tree)
parent 708595d996c415c203286f0429ea584c803d668c
Author: Tim Pope <code@tpope.net>
Date: Mon, 20 Jan 2020 11:54:49 -0500
Replace --format with --pretty=format for older Git
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -1567,7 +1567,7 @@ function! s:ReplaceCmd(cmd) abort
endfunction
function! s:QueryLog(refspec) abort
- let lines = s:LinesError(['log', '-n', '256', '--format=%h%x09%s', a:refspec, '--'])[0]
+ let lines = s:LinesError(['log', '-n', '256', '--pretty=format:%h%x09%s', a:refspec, '--'])[0]
call map(lines, 'split(v:val, "\t")')
call map(lines, '{"type": "Log", "commit": v:val[0], "subject": v:val[-1]}')
return lines