From f413d1f4d93808813bb228f82b643bf761a7ec43 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 16 Aug 2008 13:28:28 +0000 Subject: 25461: patch to add HEAD as a completion for heads, from Mikael Magnusson. --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index b7c1cd3fb..c5290d365 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -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] )) || -- cgit 1.4.1