Let :Gdiff :/ diff against the work tree version
This commit is contained in:
parent
383b2a43df
commit
d5f8446158
@ -1104,7 +1104,7 @@ function! s:Diff(bang,...) abort
|
|||||||
let file = s:buffer().path('/')
|
let file = s:buffer().path('/')
|
||||||
elseif a:1 ==# ':'
|
elseif a:1 ==# ':'
|
||||||
let file = s:buffer().path(':0:')
|
let file = s:buffer().path(':0:')
|
||||||
elseif a:1 =~# '^:/'
|
elseif a:1 =~# '^:/.'
|
||||||
try
|
try
|
||||||
let file = s:repo().rev_parse(a:1).s:buffer().path(':')
|
let file = s:repo().rev_parse(a:1).s:buffer().path(':')
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user