mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 04:34:26 +08:00
@@ -1101,6 +1101,11 @@ function! s:commits(buffer_local, args)
|
||||
let options.options[-1] .= ',ctrl-d'
|
||||
endif
|
||||
|
||||
if !s:is_win
|
||||
call extend(options.options,
|
||||
\ ['--preview', 'grep -o "[a-f0-9]\{7,\}" <<< {} | xargs git show --format=format: --color=always | head -200'])
|
||||
endif
|
||||
|
||||
return s:fzf(a:buffer_local ? 'bcommits' : 'commits', options, a:args)
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user