Teach bash about git-repo-config.
commit5de40f59d4954738448e238b06eed72f73cca740
authorShawn O. Pearce <spearce@spearce.org>
Mon, 27 Nov 2006 09:44:47 +0000 (27 04:44 -0500)
committerJunio C Hamano <junkio@cox.net>
Mon, 27 Nov 2006 20:17:59 +0000 (27 12:17 -0800)
treebdc307af77d95bd09f6b77d45a470260a43e97bf
parent35e65ecca78ceeca8eca72149e7546de94ed8607
Teach bash about git-repo-config.

This is a really ugly completion script for git-repo-config, but it has
some nice properties.  I've added all of the documented configuration
parameters from Documentation/config.txt to the script, allowing the
user to complete any standard configuration parameter name.

We also have some intelligence for the remote.*.* and branch.*.* keys
by completing not only the key name (e.g. remote.origin) but also the
values (e.g. remote.*.fetch completes to the branches available on the
corresponding remote).

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