Permalink
Browse files

add `new` status

  • Loading branch information...
gmarik authored and zolrath committed Apr 18, 2012
1 parent 769feb9 commit 8c4e0a4a318859c7214b7b3c19568ff6bd891c22
Showing with 9 additions and 4 deletions.
  1. +2 −1 autoload/vundle.vim
  2. +7 −3 autoload/vundle/installer.vim
View
@@ -30,7 +30,8 @@ if (has('signs'))
sign define Vu_error text=! texthl=Error
sign define Vu_active text=> texthl=Comment
sign define Vu_todate text=. texthl=Comment
-sign define Vu_updated text=+ texthl=Comment
+sign define Vu_new text=+ texthl=Comment
+sign define Vu_updated text=* texthl=Comment
sign define Vu_deleted text=- texthl=Comment
endif
@@ -53,8 +53,10 @@ func! vundle#installer#run(func_name, name, ...) abort
redraw
- if 'updated' == status
+ if 'new' == status
echo n.' installed'
+ elseif 'updated' == status
+ echo n.' updated'
elseif 'todate' == status
echo n.' already installed'
elseif 'deleted' == status
@@ -219,9 +221,11 @@ func! s:sync(bang, bundle) abort
return 'error'
end
- if out =~# 'up-to-date'
+ if out =~# 'Cloning into '
+ return 'new'
+ elseif out =~# 'up-to-date'
return 'todate'
- end
+ endif
call s:add_to_updated_bundle_list(a:bundle)
return 'updated'

0 comments on commit 8c4e0a4

Please sign in to comment.