From: Shawn O. Pearce Date: Sat, 09 May 2009 03:44:38 GMT Subject: Re: [PATCHv2 2/2] completion: complete config variables for --get/getall/unset/unset-all Message-ID: <20090509034438.GZ30527@spearce.org> In-Reply-To: <1241832213-23070-3-git-send-email-bebarino@gmail.com> Stephen Boyd wrote: > This should make it easier for users to get and unset their > configuration variables without having to open documentation or dig > through their configuration file. > > Signed-off-by: Stephen Boyd > --- > contrib/completion/git-completion.bash | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) These probably could have been one patch, since the function is introduced only to support this one usage, and this patch is only 4 lines larger than the function definition anyway... But yea, this series is better. Acked-by: Shawn O. Pearce > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index e73359c..ad26b7c 100755 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -1417,6 +1417,10 @@ _git_config () > __gitcomp "$__git_send_email_suppresscc_options" > return > ;; > + --get|--get-all|--unset|--unset-all) > + __gitcomp "$(__git_config_get_set_variables)" > + return > + ;; > *.*) > COMPREPLY=() > return > -- > 1.6.3 > -- Shawn.