From 52ab424372ffe2219dd4d054aa1ee803e71ab2e1 Mon Sep 17 00:00:00 2001 From: Daniel Bosk Date: Fri, 25 Aug 2017 10:02:57 +0200 Subject: [PATCH] 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. --- autoload/vundle/installer.vim | 1 + doc/vundle.txt | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 472271a..0112fa8 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -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', \ ] diff --git a/doc/vundle.txt b/doc/vundle.txt index 81a5f66..87f3f6b 100644 --- a/doc/vundle.txt +++ b/doc/vundle.txt @@ -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* >