Code

completion: support full refs from remote repositories
authorSZEDER Gábor <szeder@ira.uka.de>
Sat, 8 Oct 2011 14:54:39 +0000 (16:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2011 21:38:23 +0000 (14:38 -0700)
commitfb772cca2bd38e97a3b23d5b241a8961156b681b
treeab66be8d4d4c598cfeede001f676f8f58848aec3
parentd8c0453e1a81db03880a9f237675d82cdc290d2c
completion: support full refs from remote repositories

When the __git_refs() completion helper function lists refs from a
local repository, it usually lists the refs' short name, except when
it needs to provide completion for words starting with refs, because
in that case it lists full ref names, see 608efb87 (bash: complete
full refs, 2008-11-28).

Add the same functionality to the code path dealing with remote
repositories, too.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash