From da2aebe3e6a646eca005a6a1cefb15180eeaac7c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 5 Mar 2012 07:32:01 -0500 Subject: [PATCH] Use ==# --- plugin/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 6938eb3..b92f2f9 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2002,21 +2002,21 @@ function! s:BufReadObject() setlocal endofline try - if b:fugitive_type == 'tree' + if b:fugitive_type ==# 'tree' let b:fugitive_display_format = b:fugitive_display_format % 2 if b:fugitive_display_format call s:ReplaceCmd(s:repo().git_command('ls-tree',hash)) else call s:ReplaceCmd(s:repo().git_command('show','--no-color',hash)) endif - elseif b:fugitive_type == 'tag' + elseif b:fugitive_type ==# 'tag' let b:fugitive_display_format = b:fugitive_display_format % 2 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('cat-file','-p',hash)) endif - elseif b:fugitive_type == 'commit' + elseif b:fugitive_type ==# 'commit' let b:fugitive_display_format = b:fugitive_display_format % 2 if b:fugitive_display_format call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))