Interpret the second argument to Plug command as tag option

The older documentation of vim-plug suggested that the second string
parameter to Plug command was for both branches and tags. But we've
realized that tags and branches are not interchangeable (#174), and it
is now recommended that the user explicitly specify whether it's a
branch or a tag. The now-undocumented second parameter is currently for
branches, but I'd like to change it for tags, as the use of tags are
much more common.
This commit is contained in:
Junegunn Choi
2015-02-21 12:26:11 +09:00
parent bb48508c3e
commit 95aa96a884
3 changed files with 5 additions and 8 deletions

View File

@@ -100,7 +100,7 @@ Execute (#139-1 Using new remote branch):
" We're setting up two plugins so that parallel installer is used
call plug#begin('$TMPDIR/plugged')
Plug 'junegunn/seoul256.vim'
Plug expand('file:///$TMPDIR/new-branch'), 'new'
Plug expand('file:///$TMPDIR/new-branch'), { 'branch': 'new' }
call plug#end()
PlugUpdate
silent %y
@@ -130,7 +130,7 @@ Execute (#139-2 Using yet another new remote branch):
" Test Vim installer here
call plug#begin('$TMPDIR/plugged')
Plug expand('file:///$TMPDIR/new-branch'), 'brand-new'
Plug expand('file:///$TMPDIR/new-branch'), { 'branch': 'brand-new' }
call plug#end()
PlugUpdate
silent %y