Merge pull request #233 from itspriddle/fix-diff-display
Specify a format when `git show` displays a commit
This commit is contained in:
commit
0227c78910
2
plug.vim
2
plug.vim
|
@ -1934,7 +1934,7 @@ function! s:preview_commit()
|
||||||
execute 'pedit' sha
|
execute 'pedit' sha
|
||||||
wincmd P
|
wincmd P
|
||||||
setlocal filetype=git buftype=nofile nobuflisted
|
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
|
normal! gg"_dd
|
||||||
wincmd p
|
wincmd p
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue
Block a user