Skip to content

Commit 88a4ed4

Browse files
LemmingAvalanchegitster
authored andcommitted
config: document --[no-]show-names
These options were introduced in 4e51389 (builtin/config: introduce "get" subcommand, 2024-05-06) but not documented here. Use the description from the source code. Document this option and the negated form according to the current convention.[1] `--show-names` is also the default when `--get-regexp` is given. But don’t mention it here since all the deprecated modes are quarantined in the “Deprecated Modes” section. [1]: https://lore.kernel.org/git/[email protected]/ Acked-by: Patrick Steinhardt <[email protected]> Signed-off-by: Kristoffer Haugsbakk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 16bd9f2 commit 88a4ed4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/git-config.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ Valid `<type>`'s include:
259259
Output only the names of config variables for `list` or
260260
`get`.
261261

262+
`--show-names`::
263+
`--no-show-names`::
264+
With `get`, show config keys in addition to their values. The
265+
default is `--no-show-names` unless `--url` is given and there
266+
are no subsections in _<name>_.
267+
262268
--show-origin::
263269
Augment the output of all queried config options with the
264270
origin type (file, standard input, blob, command line) and

0 commit comments

Comments
 (0)