diff --git a/bundle/git.vim/autoload/git/branch.vim b/bundle/git.vim/autoload/git/branch.vim index e21867bc7..5817a782d 100644 --- a/bundle/git.vim/autoload/git/branch.vim +++ b/bundle/git.vim/autoload/git/branch.vim @@ -13,6 +13,7 @@ " > " :Git branch " < + if has('nvim-0.9.0') function! git#branch#current(...) abort let prefix = get(a:000, 0, '') @@ -141,8 +142,6 @@ else return '' endif endfunction - "" - " update the branch info manually. function! git#branch#detect() abort call s:update_branch_name(getcwd(), 1) endfunction diff --git a/bundle/git.vim/doc/git.txt b/bundle/git.vim/doc/git.txt index 9823cf92d..732e3f710 100644 --- a/bundle/git.vim/doc/git.txt +++ b/bundle/git.vim/doc/git.txt @@ -6,11 +6,12 @@ CONTENTS *git-contents* 1. Introduction..................................................|git-intro| 2. Commands...................................................|git-commands| 1. git-add.....................................................|git-add| - 2. git-cherry-pick.....................................|git-cherry-pick| - 3. git-clean.................................................|git-clean| - 4. git-mv.......................................................|git-mv| - 5. git-rm.......................................................|git-rm| - 6. git-stash.................................................|git-stash| + 2. git-branch...............................................|git-branch| + 3. git-cherry-pick.....................................|git-cherry-pick| + 4. git-clean.................................................|git-clean| + 5. git-mv.......................................................|git-mv| + 6. git-rm.......................................................|git-rm| + 7. git-stash.................................................|git-stash| 3. Functions.................................................|git-functions| ============================================================================== @@ -34,6 +35,14 @@ file to the index. :Git add % < +============================================================================== +GIT-BRANCH *git-branch* + +This commands is to open branch manager. +> + :Git branch +< + ============================================================================== GIT-CHERRY-PICK *git-cherry-pick* @@ -85,8 +94,5 @@ git#branch#detect() *git#branch#detect()* git#branch#current() *git#branch#current()* return the current branch info. this function can be used in statusline. -git#branch#detect() *git#branch#detect()* - update the branch info manually. - vim:tw=78:ts=8:ft=help:norl: