mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Use ==#
This commit is contained in:
@@ -2002,21 +2002,21 @@ function! s:BufReadObject()
|
|||||||
setlocal endofline
|
setlocal endofline
|
||||||
|
|
||||||
try
|
try
|
||||||
if b:fugitive_type == 'tree'
|
if b:fugitive_type ==# 'tree'
|
||||||
let b:fugitive_display_format = b:fugitive_display_format % 2
|
let b:fugitive_display_format = b:fugitive_display_format % 2
|
||||||
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','--no-color',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
|
||||||
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('cat-file','-p',hash))
|
call s:ReplaceCmd(s:repo().git_command('cat-file','-p',hash))
|
||||||
endif
|
endif
|
||||||
elseif b:fugitive_type == 'commit'
|
elseif b:fugitive_type ==# 'commit'
|
||||||
let b:fugitive_display_format = b:fugitive_display_format % 2
|
let b:fugitive_display_format = b:fugitive_display_format % 2
|
||||||
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))
|
||||||
|
|||||||
Reference in New Issue
Block a user