From c80a5ebce0e6afe3f9d3f5047f3de524386c40bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-No=C3=ABl=20Avila?= Date: Wed, 19 Nov 2025 21:40:03 +0000 Subject: [PATCH] doc: convert git pull to synopsis style MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - Switch the synopsis to a synopsis block which will automatically format placeholders in italics and keywords in monospace - Use __ instead of in the description - Use `backticks` for keywords and more complex option descriptions. The new rendering engine will apply synopsis rules to these spans. Signed-off-by: Jean-Noël Avila Signed-off-by: Junio C Hamano --- Documentation/fetch-options.adoc | 10 +++--- Documentation/git-pull.adoc | 61 ++++++++++++++++---------------- Documentation/merge-options.adoc | 2 +- Documentation/urls-remotes.adoc | 4 +-- 4 files changed, 38 insertions(+), 39 deletions(-) diff --git a/Documentation/fetch-options.adoc b/Documentation/fetch-options.adoc index 35a84a1ef2..fcba46ee9e 100644 --- a/Documentation/fetch-options.adoc +++ b/Documentation/fetch-options.adoc @@ -71,7 +71,7 @@ configuration variables documented in linkgit:git-config[1], and the `--negotiate-only`:: Do not fetch anything from the server, and instead print the - ancestors of the provided `--negotiation-tip=*` arguments, + ancestors of the provided `--negotiation-tip=` arguments, which we have in common with the server. + This is incompatible with `--recurse-submodules=(yes|on-demand)`. @@ -126,7 +126,7 @@ ifndef::git-pull[] `--auto-gc`:: `--no-auto-gc`:: Run `git maintenance run --auto` at the end to perform automatic - repository maintenance if needed. (`--[no-]auto-gc` is a synonym.) + repository maintenance if needed. This is enabled by default. `--write-commit-graph`:: @@ -193,7 +193,7 @@ endif::git-pull[] specified refspec (can be given more than once) to map the refs to remote-tracking branches, instead of the values of `remote..fetch` configuration variables for the remote - repository. Providing an empty `` to the + repository. Providing an empty __ to the `--refmap` option causes Git to ignore the configured refspecs and rely entirely on the refspecs supplied as command-line arguments. See section on "Configured Remote-tracking @@ -204,7 +204,7 @@ endif::git-pull[] Fetch all tags from the remote (i.e., fetch remote tags `refs/tags/*` into local tags with the same name), in addition to whatever else would otherwise be fetched. Using this - option alone does not subject tags to pruning, even if --prune + option alone does not subject tags to pruning, even if `--prune` is used (though tags may be pruned anyway if they are also the destination of an explicit refspec; see `--prune`). @@ -306,7 +306,7 @@ endif::git-pull[] `-o