Skip to content

Commit bd3abe0

Browse files
committed
Merge branch 'jc/config-doc-update'
Docfix. * jc/config-doc-update: git-config.1: fix description of --regexp in synopsis git-config.1: --get-all description update
2 parents bb42484 + 1609470 commit bd3abe0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/git-config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SYNOPSIS
1010
--------
1111
[verse]
1212
'git config list' [<file-option>] [<display-option>] [--includes]
13-
'git config get' [<file-option>] [<display-option>] [--includes] [--all] [--regexp=<regexp>] [--value=<value>] [--fixed-value] [--default=<default>] <name>
13+
'git config get' [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<value>] [--fixed-value] [--default=<default>] <name>
1414
'git config set' [<file-option>] [--type=<type>] [--all] [--value=<value>] [--fixed-value] <name> <value>
1515
'git config unset' [<file-option>] [--all] [--value=<value>] [--fixed-value] <name> <value>
1616
'git config rename-section' [<file-option>] <old-name> <new-name>
@@ -309,7 +309,7 @@ recommended to migrate to the new syntax.
309309
Replaced by `git config get [--value=<pattern>] <name>`.
310310

311311
--get-all <name> [<value-pattern>]::
312-
Replaced by `git config get [--value=<pattern>] --all --show-names <name>`.
312+
Replaced by `git config get [--value=<pattern>] --all <name>`.
313313

314314
--get-regexp <name-regexp>::
315315
Replaced by `git config get --all --show-names --regexp <name-regexp>`.

builtin/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
static const char *const builtin_config_usage[] = {
1919
N_("git config list [<file-option>] [<display-option>] [--includes]"),
20-
N_("git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp=<regexp>] [--value=<value>] [--fixed-value] [--default=<default>] <name>"),
20+
N_("git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<value>] [--fixed-value] [--default=<default>] <name>"),
2121
N_("git config set [<file-option>] [--type=<type>] [--all] [--value=<value>] [--fixed-value] <name> <value>"),
2222
N_("git config unset [<file-option>] [--all] [--value=<value>] [--fixed-value] <name> <value>"),
2323
N_("git config rename-section [<file-option>] <old-name> <new-name>"),

0 commit comments

Comments
 (0)