git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] doc: add --show-names for git config

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 19, 2024, 19:22 UTC
Message-ID
<xmqqle0se2ra.fsf@gitster.g>
In-Reply-To
<CAEg0tHQDT7LesB2kiQD4rXwcUs5ZhOH+YWdn990tfGdrnYdgZg@mail.gmail.com>
[Cc-ing the author of 4e513890 that was referred to by this change.]
Yukai Chou <muzimuzhi@gmail.com> writes:
Show 31 quoted lines
> 4e513890 (builtin/config: introduce "get" subcommand,
> 2024-05-06) introduced "--show-names" option that is used to
> give the name of the configuration variable to each output entry
> in addition to the value.  It however forgot to document it,
> even though the option is used in a few examples.
>
> Document it.
>
> Signed-off-by: Yukai Chou <muzimuzhi@gmail.com>
> ---
> Thanks for your review and suggestions Junio. I must have stayed up
> too late yesterday, so what the commit message was sent was not the
> final version.
>
>  Documentation/git-config.txt | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
> index 65c645d461..16323c4ed0 100644
> --- a/Documentation/git-config.txt
> +++ b/Documentation/git-config.txt
> @@ -268,6 +268,9 @@ Valid `<type>`'s include:
>   all queried config options with the scope of that value
>   (worktree, local, global, system, command).
>
> +--show-names::
> + Output also the names of config variables for `list` or `get`.
> +
>  --get-colorbool <name> [<stdout-is-tty>]::
>
>   Find the color setting for `<name>` (e.g. `color.diff`) and output
Previous: Yukai ChouNext: Patrick Steinhardt
Message 5 of 9 in “doc: add --show-names for git config”
  1. doc: add --show-names for git configYukai Chou, Aug 19, 2024
  2. Yukai ChouAug 19, 2024
  3. Junio C HamanoAug 19, 2024
  4. doc: add --show-names for git configYukai Chou, Aug 19, 2024
  5. Junio C HamanoAug 19, 2024
  6. Patrick SteinhardtAug 21, 2024
  7. Junio C HamanoAug 21, 2024
  8. Patrick SteinhardtAug 21, 2024
  9. Junio C HamanoAug 21, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.