From 49b777ae44645f8253c734976595469957c5a396 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 13 Aug 2019 17:24:12 -0400 Subject: [PATCH] Use rev-list in lieu of log with raw format --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d1046bc..bc31b13 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4596,7 +4596,7 @@ function! s:BlameCommitFileLnum(...) abort if commit =~# '^0\+$' let commit = '' elseif line !~# '^\^' && has_key(state, 'blame_reverse_end') - let commit = get(s:LinesError('log', '--pretty=format:%H', '--ancestry-path', '--reverse', commit . '..' . state.blame_reverse_end)[0], 0, commit) + let commit = get(s:LinesError('rev-list', '--ancestry-path', '--reverse', commit . '..' . state.blame_reverse_end)[0], 0, commit) endif let lnum = +matchstr(line, ' \zs\d\+\ze \%((\| *\d\+)\)') let path = matchstr(line, '^\^\=\x* \+\%(\d\+ \+\d\+ \+\)\=\zs.\{-\}\ze\s\+\%(\%( \d\+ \)\@