Use temp buffer for :Git show and :Git stash show
This commit is contained in:
parent
d417fd3199
commit
078210c718
@ -2129,7 +2129,8 @@ function! s:GitCommand(line1, line2, range, count, bang, mods, reg, arg, args) a
|
|||||||
return 'echoerr ' . string(v:exception)
|
return 'echoerr ' . string(v:exception)
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
if a:bang || args[0] =~# '^-P$\|^--no-pager$\|diff\%(tool\)\@!\|log'
|
if a:bang || args[0] =~# '^-P$\|^--no-pager$\|diff\%(tool\)\@!\|log\|^show$' ||
|
||||||
|
\ (args[0] ==# 'stash' && get(args, 1, '') ==# 'show')
|
||||||
return s:OpenExec((a:count > 0 ? a:count : '') . (a:count ? 'split' : 'edit'), a:mods, args, dir) . after
|
return s:OpenExec((a:count > 0 ? a:count : '') . (a:count ? 'split' : 'edit'), a:mods, args, dir) . after
|
||||||
endif
|
endif
|
||||||
let git = s:UserCommandList(dir)
|
let git = s:UserCommandList(dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user