Hi, Maybe it should be checked if FETCH_HEAD, ORIG_HEAD and MERGE_HEAD exist before completing them, but I'm not sure how to that. Simon --- Completion/Unix/Command/_git | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index d7570cc..dbc3dae 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -3125,7 +3125,7 @@ __git_heads () { branch_names=(${${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname)"' refs/heads refs/remotes 2>/dev/null)"}#refs/(heads|remotes)/}) __git_command_successful || return - _wanted heads expl branch-name compadd $* - $branch_names HEAD + _wanted heads expl branch-name compadd $* - $branch_names HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD } (( $+functions[__git_tags] )) || -- 1.7.0.2 -- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9
Attachment:
pgplZNQ1Jsspc.pgp
Description: PGP signature