parent
c07fdea6a2
commit
746e21f750
@ -245,6 +245,9 @@ function! s:diff_get(path) abort
|
|||||||
|
|
||||||
if executable('git')
|
if executable('git')
|
||||||
let orig_dir = getcwd()
|
let orig_dir = getcwd()
|
||||||
|
if a:path =~ '^fugitive'
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
exe 'cd '. fnamemodify(a:path, ':h')
|
exe 'cd '. fnamemodify(a:path, ':h')
|
||||||
let diff = system('git diff --no-ext-diff -U0 -- '. a:path .' | grep "^@@ "')
|
let diff = system('git diff --no-ext-diff -U0 -- '. a:path .' | grep "^@@ "')
|
||||||
if !v:shell_error
|
if !v:shell_error
|
||||||
@ -297,7 +300,7 @@ function! s:diff_get(path) abort
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return []
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Functions -> s:diff_process() {{{2
|
" Functions -> s:diff_process() {{{2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user