mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
Replace --format with --pretty=format for older Git
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user