mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Work around "always" color option
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user