Browse Source

Adds vundle-before-update tag to unbreak plugins

Sometimes plugins break after update. In those cases it's difficult to
restore the plugin to its previous version. With this commit Vundle will
create a tag (`vundle-before-update`) which keeps track of the commit
used before an update. This makes it easy to go back to use the previous
version.
pull/832/head
Daniel Bosk 8 years ago
parent
commit
52ab424372
No known key found for this signature in database GPG Key ID: F17E3002A2D78FC8
2 changed files with 11 additions and 0 deletions
  1. +1
    -0
      autoload/vundle/installer.vim
  2. +10
    -0
      doc/vundle.txt

+ 1
- 0
autoload/vundle/installer.vim View File

@ -407,6 +407,7 @@ func! s:make_sync_command(bang, bundle) abort
let cmd_parts = [
\ 'cd '.vundle#installer#shellesc(a:bundle.path()),
\ 'git tag -f vundle-before-update',
\ 'git pull',
\ 'git submodule update --init --recursive',
\ ]


+ 10
- 0
doc/vundle.txt View File

@ -277,6 +277,16 @@ To update specific plugins, write their names separated by space:
or >
:PluginUpdate vim-surround vim-fugitive
The command `git tag` will be used to tag the commit that was used before any
update (i.e. before `git pull` is run). The tag is named
`vundle-before-update`. If a plugin breaks after update, go to its directory
and run
`git checkout vundle-before-update && \`
`git submodule update --init --recursive`
Then mark it as 'pinned' in `.vimrc`.
3.5 SEARCHING PLUGINS ~
*vundle-plugins-search* *:PluginSearch*
>


Loading…
Cancel
Save