Code

bash completion: complete variable names for "git config" with options
authorStephen Boyd <bebarino@gmail.com>
Sat, 9 May 2009 01:23:32 +0000 (18:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2009 19:59:06 +0000 (12:59 -0700)
commit00652369ff285f84e440f5d41d708283e30825d7
treec44993a3591efc6b8156bf8d956f3131d906708f
parent4bf1f68ee7a894e7e4936217eec7e6ae5fa4db77
bash completion: complete variable names for "git config" with options

This makes it easier for users to get and unset their configuration
variables without having to open documentation or dig through their
configuration file.

__git_config_get_set_variables() retrieves the set configuration
variables from the appropriate configuration file. For example, if
the user has previously specified --global only the global variables
are returned. The same applies for --system, and --file. If no
location has been specified, all set variables are returned.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash