Disable diff colors to fix file name grep.

This commit is contained in:
Drew Stokes
2013-03-06 11:17:38 +01:00
committed by Andy Stewart
parent 68c12c946c
commit fd22bbbb08

View File

@@ -103,7 +103,7 @@ endfunction
" Diff processing {{{ " Diff processing {{{
function! s:run_diff() function! s:run_diff()
let cmd = 'git diff --no-ext-diff -U0 ' . shellescape(s:current_file()) . let cmd = 'git diff --no-ext-diff --no-color -U0 ' . shellescape(s:current_file()) .
\ ' | grep -e "^@@ "' \ ' | grep -e "^@@ "'
let diff = system(s:command_in_directory_of_current_file(cmd)) let diff = system(s:command_in_directory_of_current_file(cmd))
return diff return diff