[BUG] wildignore breaks Gdiff

When the file you're editing matches the vim variable wildignore
Gdiff fails.  This line wasn't being triggered:

autocmd BufReadCmd  fugitive://**//[0-9a-f][0-9a-f]* exe s:BufReadObject()
This commit is contained in:
Richard Russon (flatcap) 2012-04-01 15:24:01 +01:00 committed by Tim Pope
parent 3c641a7ef5
commit e142a27ab8

View File

@ -1360,9 +1360,9 @@ function! s:Diff(bang,...)
let spec = s:repo().translate(file) let spec = s:repo().translate(file)
let commit = matchstr(spec,'\C[^:/]//\zs\x\+') let commit = matchstr(spec,'\C[^:/]//\zs\x\+')
if s:buffer().compare_age(commit) < 0 if s:buffer().compare_age(commit) < 0
execute 'rightbelow '.split.' `=spec`' execute 'rightbelow '.split.' '.s:fnameescape(spec)
else else
execute 'leftabove '.split.' `=spec`' execute 'leftabove '.split.' '.s:fnameescape(spec)
endif endif
call s:diffthis() call s:diffthis()
wincmd p wincmd p