Re: [PATCH v2 4/5] builtin/help: add --config-all-for-completion
- From
Philippe Blain <levraiphilippeblain@gmail.com>
- Date
- Feb 10, 2024, 16:13 UTC
- Message-ID
- <527a643d-5d63-da05-70ad-99200a7b85d1@gmail.com>
- In-Reply-To
- <ZcSF2mw-zR1d38UG@tanuki>
Le 2024-02-08 à 02:42, Patrick Steinhardt a écrit :
Show 11 quoted lines
> On Mon, Jan 29, 2024 at 01:28:00PM +0000, Philippe Blain via GitGitGadget wrote: >> From: Philippe Blain <levraiphilippeblain@gmail.com> >> >> There is currently no machine-friendly way to show _all_ configuration >> variables from the command line. 'git help --config' does show them all, >> but it also sets up the pager. 'git help --config-for-completion' omits >> some variables (those containing wildcards, for example) and 'git help >> --config-section-for-completion' shows only top-level section names. > > You can invoke `git --no-pager help --config` so that Git does not set > up the pager. Is there a reason why we can't use that?
I'm glad to say there is no reason we can't use that! I just did not think of it and dived straight into the C code. I'll use that in v3 and just drop this patch from the series.
Thanks!
Philippe.