Browse Source

Makes vundle-before-update tag vundle-<datetime>

This way we can have multiple backups.
pull/832/head
Daniel Bosk 6 years ago
parent
commit
6242b7f7c1
No known key found for this signature in database GPG Key ID: F17E3002A2D78FC8
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      autoload/vundle/installer.vim
  2. +4
    -4
      doc/vundle.txt

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

@ -407,7 +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 tag -f vundle-'.strftime('%Y%m%d-%H%M'),
\ 'git pull',
\ 'git submodule update --init --recursive',
\ ]


+ 4
- 4
doc/vundle.txt View File

@ -278,11 +278,11 @@ 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
update (i.e. before `git pull` is run). The tag is named `update-<strftime>`
(today's date and time). If a plugin breaks after update, go to its
directory, check for the latest tag using `git tag` and run
`git checkout vundle-before-update && \`
`git checkout vundle-<somedatetime> && \`
`git submodule update --init --recursive`
Then mark it as 'pinned' in `.vimrc`.


Loading…
Cancel
Save