From 746e21f75034110e0c328230fa6e8001fa924565 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 12 Mar 2013 17:31:23 +0100 Subject: [PATCH] don't process fugitive files Closes #4. --- plugin/signify.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/signify.vim b/plugin/signify.vim index b5adc91..7a3c6e9 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -245,6 +245,9 @@ function! s:diff_get(path) abort if executable('git') let orig_dir = getcwd() + if a:path =~ '^fugitive' + return '' + endif exe 'cd '. fnamemodify(a:path, ':h') let diff = system('git diff --no-ext-diff -U0 -- '. a:path .' | grep "^@@ "') if !v:shell_error @@ -297,7 +300,7 @@ function! s:diff_get(path) abort endif endif - return [] + return '' endfunction " Functions -> s:diff_process() {{{2