Bash completion support for remotes in .git/config.
commit56fc25f21e280c4f3816e989b34d08d7d7cc59fc
authorShawn O. Pearce <spearce@spearce.org>
Sun, 5 Nov 2006 11:21:03 +0000 (5 06:21 -0500)
committerJunio C Hamano <junkio@cox.net>
Sun, 5 Nov 2006 21:36:32 +0000 (5 13:36 -0800)
tree040ee5d43623b6f678069cc704b2e1866b32a484
parent76c3eb51ede4619116ef980aa34d087c97c25cbc
Bash completion support for remotes in .git/config.

Now that Git natively supports remote specifications within the
config file such as:

[remote "origin"]
url = ...

we should provide bash completion support "out of the box" for
these remotes, just like we do for the .git/remotes directory.

Also cleaned up the __git_aliases expansion to use the same form
of querying and filtering repo-config as this saves two fork/execs
in the middle of a user prompted completion.  Finally also forced
the variable 'word' to be local within __git_aliased_command.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/completion/git-completion.bash