git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: add --show-names for git config
@ 2024-08-19  0:45 Yukai Chou
  2024-08-19  0:59 ` Yukai Chou
  2024-08-19 16:04 ` Junio C Hamano
  0 siblings, 2 replies; 9+ messages in thread
From: Yukai Chou @ 2024-08-19  0:45 UTC (permalink / raw)
  To: git@vger.kernel.org

Option "--show-names" was introduced along with the "get" subcommand
of git-config(1) [1]. It was used in Deprecated Modes doc examples,
normal and completion tests, but not documented.

It's known by both "get" and "list", though has no effect on "list".

Signed-off-by: Yukai Chou <muzimuzhi@gmail.com>
---
 Documentation/git-config.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 65c645d461..525c29fcff 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -268,6 +268,10 @@ 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
-- 
2.46.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-21 16:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19  0:45 [PATCH] doc: add --show-names for git config Yukai Chou
2024-08-19  0:59 ` Yukai Chou
2024-08-19 16:04 ` Junio C Hamano
2024-08-19 18:27   ` [PATCH v2] " Yukai Chou
2024-08-19 19:22     ` Junio C Hamano
2024-08-21  6:53     ` Patrick Steinhardt
2024-08-21 16:01       ` Junio C Hamano
2024-08-21  6:53   ` [PATCH] " Patrick Steinhardt
2024-08-21 16:02     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).