Specify a format when git show displays a commit

This commit is contained in:
Joshua Priddle 2015-05-19 13:45:03 -04:00
parent 018b48e071
commit 8a72305371

View File

@ -1934,7 +1934,7 @@ function! s:preview_commit()
execute 'pedit' sha
wincmd P
setlocal filetype=git buftype=nofile nobuflisted
execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show' sha
execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha
normal! gg"_dd
wincmd p
endfunction