mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Work around "always" color option
This commit is contained in:
@@ -1773,7 +1773,7 @@ function! s:BufReadObject()
|
|||||||
if b:fugitive_display_format
|
if b:fugitive_display_format
|
||||||
call s:ReplaceCmd(s:repo().git_command('ls-tree',hash))
|
call s:ReplaceCmd(s:repo().git_command('ls-tree',hash))
|
||||||
else
|
else
|
||||||
call s:ReplaceCmd(s:repo().git_command('show',hash))
|
call s:ReplaceCmd(s:repo().git_command('show','--no-color',hash))
|
||||||
endif
|
endif
|
||||||
elseif b:fugitive_type == 'tag'
|
elseif b:fugitive_type == 'tag'
|
||||||
let b:fugitive_display_format = b:fugitive_display_format % 2
|
let b:fugitive_display_format = b:fugitive_display_format % 2
|
||||||
@@ -1787,7 +1787,7 @@ function! s:BufReadObject()
|
|||||||
if b:fugitive_display_format
|
if b:fugitive_display_format
|
||||||
call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))
|
call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))
|
||||||
else
|
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 ')
|
call search('^parent ')
|
||||||
if getline('.') ==# 'parent '
|
if getline('.') ==# 'parent '
|
||||||
silent delete_
|
silent delete_
|
||||||
|
|||||||
Reference in New Issue
Block a user