From 35d6717d6aca55ad0545b492f8ce5fad90fd9db4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 26 May 2011 10:04:51 -0400 Subject: [PATCH] Work around "always" color option --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 241a05a..5d64bcf 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1773,7 +1773,7 @@ function! s:BufReadObject() if b:fugitive_display_format call s:ReplaceCmd(s:repo().git_command('ls-tree',hash)) else - call s:ReplaceCmd(s:repo().git_command('show',hash)) + call s:ReplaceCmd(s:repo().git_command('show','--no-color',hash)) endif elseif b:fugitive_type == 'tag' let b:fugitive_display_format = b:fugitive_display_format % 2 @@ -1787,7 +1787,7 @@ function! s:BufReadObject() if b:fugitive_display_format call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash)) else - call s:ReplaceCmd(s:repo().git_command('show','--pretty=format:tree %T%nparent %P%nauthor %an <%ae> %ad%ncommitter %cn <%ce> %cd%nencoding %e%n%n%s%n%n%b',hash)) + call s:ReplaceCmd(s:repo().git_command('show','--no-color','--pretty=format:tree %T%nparent %P%nauthor %an <%ae> %ad%ncommitter %cn <%ce> %cd%nencoding %e%n%n%s%n%n%b',hash)) call search('^parent ') if getline('.') ==# 'parent ' silent delete_