Thread (1 message) 1 message, 1 author, 2024-08-19

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

From: Junio C Hamano <hidden>
Date: 2024-08-19 19:22:57

[Cc-ing the author of 4e513890 that was referred to by this change.]

Yukai Chou [off-list ref] writes:
quoted hunk
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 <redacted>
---
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help