]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: enforce placeholders in documentation
authorJean-Noël Avila <jn.avila@free.fr>
Mon, 25 Dec 2023 21:21:27 +0000 (21:21 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Dec 2023 19:06:57 +0000 (11:06 -0800)
Any string that is not meant to be used verbatim in the documentation
should be marked as a placeholder.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt
Documentation/git-config.txt
Documentation/git-daemon.txt
Documentation/git-difftool.txt
Documentation/git.txt

index 53ec3c9a3476bd12b8a8f4b6c31552b2767d8366..aaaff0d46f0c6f04ca4e3182872b47d2bd2f07b6 100644 (file)
@@ -299,7 +299,7 @@ and accumulating child directory counts in the parent directories:
        Synonym for --dirstat=cumulative
 
 --dirstat-by-file[=<param1,param2>...]::
-       Synonym for --dirstat=files,param1,param2...
+       Synonym for --dirstat=files,<param1>,<param2>...
 
 --summary::
        Output a condensed summary of extended header information
index b1caac887ae2dc5ce683ab4c6d91eed849403afe..dff39093b5ef322ce115afc8f4bee0c728b6173a 100644 (file)
@@ -103,11 +103,11 @@ OPTIONS
        names are not.
 
 --get-urlmatch <name> <URL>::
-       When given a two-part name section.key, the value for
-       section.<URL>.key whose <URL> part matches the best to the
+       When given a two-part <name> as <section>.<key>, the value for
+       <section>.<URL>.<key> whose <URL> part matches the best to the
        given URL is returned (if no such key exists, the value for
-       section.key is used as a fallback).  When given just the
-       section as name, do so for all the keys in the section and
+       <section>.<key> is used as a fallback).  When given just the
+       <section> as name, do so for all the keys in the section and
        list them.  Returns error code 1 if no value is found.
 
 --global::
index 6ab792228a1045abbb4ba656b144a91f8b624148..ede7b935d649472534dcc1bd9258c1d12231ca32 100644 (file)
@@ -141,8 +141,8 @@ otherwise `stderr`.
        specified with no parameter, a request to
        git://host/{tilde}alice/foo is taken as a request to access
        'foo' repository in the home directory of user `alice`.
-       If `--user-path=path` is specified, the same request is
-       taken as a request to access `path/foo` repository in
+       If `--user-path=<path>` is specified, the same request is
+       taken as a request to access `<path>/foo` repository in
        the home directory of user `alice`.
 
 --verbose::
index 50cb080085e7708eb117e58fc42920c710452b31..c05f97aca96be62a6792681f8ccf62995d411ac2 100644 (file)
@@ -90,7 +90,7 @@ instead.  `--no-symlinks` is the default on Windows.
 --extcmd=<command>::
        Specify a custom command for viewing diffs.
        'git-difftool' ignores the configured defaults and runs
-       `$command $LOCAL $REMOTE` when this option is specified.
+       `<command> $LOCAL $REMOTE` when this option is specified.
        Additionally, `$BASE` is set in the environment.
 
 -g::
index 6536a739604b7cba349f63b7a51b53fad5bdebd0..881c77312f22ed4435e25277f0c9d5fc0d172e91 100644 (file)
@@ -202,7 +202,7 @@ If you just want to run git as if it was started in `<path>` then use
        Do not perform optional operations that require locks. This is
        equivalent to setting the `GIT_OPTIONAL_LOCKS` to `0`.
 
---list-cmds=group[,group...]::
+--list-cmds=<group>[,<group>...]::
        List commands by group. This is an internal/experimental
        option and may change or be removed in the future. Supported
        groups are: builtins, parseopt (builtin commands that use