motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit da2aebe3e6a646eca005a6a1cefb15180eeaac7c (tree)
parent 5bc125d1d52a6d9a2d7ce1fbbef184651682c3e0
Author: Tim Pope <code@tpope.net>
Date:   Mon,  5 Mar 2012 07:32:01 -0500

Use ==#

Diffstat:
Mplugin/fugitive.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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))