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

Re: [PATCH 0/5] doc: config: update for the ps/config-subcommands series

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 30, 2025, 23:10 UTC
Message-ID
<xmqqwm8sltbc.fsf@gitster.g>
In-Reply-To
<cover.1751310455.git.code@khaugsbakk.name>
kristofferhaugsbakk@fastmail.com writes:
Show 23 quoted lines
> From: Kristoffer Haugsbakk <code@khaugsbakk.name>
>
> Update git-config(1) according to the ps/config-subcommands series
> (fe3ccc7aab (Merge branch 'ps/config-subcommands', 2024-05-15)):
>
> 1. Document `--show-names`
> 2. Document `--value`
> 3. Mention `--value` throughout instead of the deprecated
>    `value-pattern`
> 4. Mention `--url` in the synopsis
>
> Kristoffer Haugsbakk (5):
>   doc: config: document --[no-]show-names
>   doc: config: use --value=<pattern> consistently
>   doc: config: document --[no-]value
>   doc: config: use --value instead of value-pattern
>   doc: config: mention --url in the synopsis
>
>  Documentation/git-config.adoc | 28 +++++++++++++++++++++-------
>  1 file changed, 21 insertions(+), 7 deletions(-)
>
>
> base-commit: cf6f63ea6bf35173e02e18bdc6a4ba41288acff9
Have you run tests with this series, especially t0450?
$ sh t0450-*.sh -i -v
...
expecting success of 0450.142 'config -h output and SYNOPSIS agree':
                t2s="$(adoc_to_synopsis "$builtin")" &&
                if test "$builtin" = "merge-tree"
                then
                        test_when_finished "rm -f t2s.new" &&
                        sed -e 's/ (deprecated)$//g' <"$t2s" >t2s.new
                        t2s=t2s.new
                fi &&
                h2s="$(help_to_synopsis "$builtin")" &&
                # The *.adoc and -h use different spacing for the
                # alignment of continued usage output, normalize it.
                align_after_nl "$builtin" <"$t2s" >adoc &&
                align_after_nl "$builtin" <"$h2s" >help &&
                test_cmp adoc help

--- adoc 2025-06-30 23:09:02.715600047 +0000 +++ help 2025-06-30 23:09:02.723600026 +0000

@@ -1,7 +1,7 @@
 git config list [<file-option>] [<display-option>] [--includes]
-git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<pattern>] [--fixed-value] [--default=<default>] [--url=<url>] <name>
-git config set [<file-option>] [--type=<type>] [--all] [--value=<pattern>] [--fixed-value] <name> <value>
-git config unset [<file-option>] [--all] [--value=<pattern>] [--fixed-value] <name>
+git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<value>] [--fixed-value] [--default=<default>] <name>
+git config set [<file-option>] [--type=<type>] [--all] [--value=<value>] [--fixed-value] <name> <value>
+git config unset [<file-option>] [--all] [--value=<value>] [--fixed-value] <name>
 git config rename-section [<file-option>] <old-name> <new-name>
 git config remove-section [<file-option>] <name>
 git config edit [<file-option>]
not ok 142 - config -h output and SYNOPSIS agree
#
#                       t2s="$(adoc_to_synopsis "$builtin")" &&
#                       if test "$builtin" = "merge-tree"
#                       then
#                               test_when_finished "rm -f t2s.new" &&
#                               sed -e 's/ (deprecated)$//g' <"$t2s" >t2s.new
#                               t2s=t2s.new
#                       fi &&
#                       h2s="$(help_to_synopsis "$builtin")" &&
#
#                       # The *.adoc and -h use different spacing for the
#                       # alignment of continued usage output, normalize it.
#                       align_after_nl "$builtin" <"$t2s" >adoc &&
#                       align_after_nl "$builtin" <"$h2s" >help &&
#                       test_cmp adoc help
#
1..142
Previous: Kristoffer HaugsbakkNext: Kristoffer Haugsbakk
Message 11 of 22 in “doc: config: update for the ps/config-subcommands series”
  1. 0/5 doc: config: update for the ps/config-subcommands serieskristofferhaugsbakk@fastmail.com, Jun 30, 2025
  2. 1/5 doc: config: document --[no-]show-nameskristofferhaugsbakk@fastmail.com, Jun 30, 2025
  3. 2/5 doc: config: use --value=<pattern> consistentlykristofferhaugsbakk@fastmail.com, Jun 30, 2025
  4. Kristoffer HaugsbakkJul 1, 2025
  5. Kristoffer HaugsbakkJul 1, 2025
  6. 3/5 doc: config: document --[no-]valuekristofferhaugsbakk@fastmail.com, Jun 30, 2025
  7. Eric SunshineJun 30, 2025
  8. 4/5 doc: config: use --value instead of value-patternkristofferhaugsbakk@fastmail.com, Jun 30, 2025
  9. 5/5 doc: config: mention --url in the synopsiskristofferhaugsbakk@fastmail.com, Jun 30, 2025
  10. Kristoffer HaugsbakkJul 1, 2025
  11. Junio C HamanoJun 30, 2025
  12. Kristoffer HaugsbakkJul 1, 2025
  13. Patrick SteinhardtJul 1, 2025
  14. Kristoffer HaugsbakkJul 1, 2025
  15. Junio C HamanoJul 1, 2025
  16. 0/5 doc: config: update for the ps/config-subcommands serieskristofferhaugsbakk@fastmail.com, Jul 1, 2025
  17. 1/5 doc: config: document --[no-]show-nameskristofferhaugsbakk@fastmail.com, Jul 1, 2025
  18. 2/5 config: use --value=<pattern> consistentlykristofferhaugsbakk@fastmail.com, Jul 1, 2025
  19. 3/5 doc: config: document --[no-]valuekristofferhaugsbakk@fastmail.com, Jul 1, 2025
  20. 4/5 doc: config: use --value instead of value-patternkristofferhaugsbakk@fastmail.com, Jul 1, 2025
  21. 5/5 config: mention --url in the synopsiskristofferhaugsbakk@fastmail.com, Jul 1, 2025
  22. Junio C HamanoJul 1, 2025

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.