1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

25461: patch to add HEAD as a completion for heads, from Mikael Magnusson.

This commit is contained in:
Clint Adams 2008-08-16 13:28:28 +00:00
parent ad001cc1e3
commit f413d1f4d9
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2008-08-16 Clint Adams <clint@zsh.org>
* 25461: Completion/Unix/Command/_git: patch to add HEAD as
a completion for heads, from Mikael Magnusson.
* 25460: Completion/Unix/Command/_git: patch to add the
--branches/tags/remotes for rev-list to _git from Mikael
Magnusson.

View file

@ -2900,7 +2900,7 @@ __git_heads () {
branch_names=(${${(f)"$(_call_program heads git branch --no-color -a 2>/dev/null)"}#[* ] })
__git_command_successful || return
_wanted heads expl branch-name compadd $* - $branch_names
_wanted heads expl branch-name compadd $* - $branch_names HEAD
}
(( $+functions[__git_tags] )) ||