Use 'new' & 'updated' to build updated_bundle list

Distinction between `new` and `updated` simplifies the process
of adding a bundle to the updated_bundle list.
This commit is contained in:
Matt Furden
2012-04-18 01:19:25 -07:00
parent 8c4e0a4a31
commit e999886db5
2 changed files with 4 additions and 10 deletions

View File

@@ -35,15 +35,17 @@ endf
func! s:create_changelog() abort
for bundle in g:updated_bundles
let update_sha = system('cd '.shellescape(bundle.path()).' && git rev-list -1 vundle_update')[0:9]
let updates = system('cd '.shellescape(bundle.path()).
\ ' && git log --pretty=format:"%s %an, %ar" --graph'.
\ ' vundle_update..HEAD')
call add(g:vundle_changelog, '')
call add(g:vundle_changelog, 'Updated Bundle: '.bundle.name)
if bundle.uri =~ "https://github.com"
let update_sha = system('cd '.shellescape(bundle.path()).' && git rev-list -1 vundle_update')[0:9]
call add(g:vundle_changelog, 'Compare at: '.bundle.uri[0:-5].'/compare/'.update_sha.'...HEAD')
endif
for update in split(updates, '\n')
let update = substitute(update, '\s\+$', '', '')
call add(g:vundle_changelog, ' '.update)