Repository navigation
Conversation
* Replace [verse] with [synopsis] in the SYNOPSIS block * remove single-quote formatting from the command names * backtick-quote the flag * rework _<placeholder>_ forms for positional parameter terms Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
The configuration options of git-svn are not treated like the other configuration options in the documentation. They are not listed in the config.adoc file and they are not documented in a dedicated file. Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
jnavila
force-pushed
the
synopsis-style-svn
branch
2 times, most recently
from
November 22, 2026 16:24
fe3d8ae to
2783625
Compare
* convert synopsis section * convert options to `` style * convert _<placeholder>_ style Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
* convert synopsis section * convert options to `` style * convert _<placeholder>_ style * convert inline list of values to sub definition lists Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
jnavila
force-pushed
the
synopsis-style-svn
branch
from
November 22, 2026 16:30
2783625 to
814dfdd
Compare
Author
|
/submit |
|
Submitted as pull.2324.git.1795556940.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
| @@ -8,55 +8,57 @@ git-fast-export - Git data exporter | |||
|
|
|||
There was a problem hiding this comment.
Junio C Hamano wrote on the Git mailing list (how to reply to this email):
"Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
>
> * convert synopsis section
> * convert options to `` style
> * convert _<placeholder>_ style
> * convert inline list of values to sub definition lists
>
> Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
> ---
> Documentation/git-fast-export.adoc | 193 +++++++++++++++--------------
> 1 file changed, 98 insertions(+), 95 deletions(-)
> +[synopsis]
> gpgsig <git-hash-algo> <signature-format>
Using [synopsis] on the gpgsig <git-hash-algo> <signature-format> line
looks very clean.
> ---mark-tags::
> - In addition to labelling blobs and commits with mark ids, also
> - label tags. This is useful in conjunction with
> +`--mark-tags`::
> + Label tags with mark ids in addition of blobs and commits.
> + This is useful in conjunction with
Two typos crept into the rewritten sentence: a double space (which,
admittedly, is harmless, but some of us do read the source) after
"tags", and "in addition of" instead of "in addition to".
> +`--reference-excluded-parents`::
> + Have the stream refer to commits in the excluded range of history by their SHA-1 object
> + name instead of rewriting their parent references. By default, running
> + a command such as `git fast-export master~5..master` will not include the
> + commit `master~5`
> + and will make `master~4` no longer have `master~5` as
> + a parent (though both the old `master~4` and new
> + `master~4` will have all the same files). Note that the resulting stream
> + can only be used by a repository which already contains the necessary parent
There is a stray tab between "which" and "already" here (which,
admittedly is harmless when rendered, but some of us do read the
source).
> ---reencode=(yes|no|abort)::
> +`--reencode=(yes|no|abort)`::
> Specify how to handle `encoding` header in commit objects. When
> - asking to 'abort' (which is the default), this program will die
> - when encountering such a commit object. With 'yes', the commit
> - message will be re-encoded into UTF-8. With 'no', the original
> - encoding will be preserved.
> + asking to one of the following values:
"When asking to one of the following values:" reads like an incomplete
edit of "When asking to 'abort'...". Replacing it with "The possible
values are:" or ending the first sentence with a colon ("Specify how to
handle the `encoding` header in commit objects:") would read more
cleanly, perhaps?
> ++
> +`abort`;; Die when encountering a commit object with an `encoding` header.
> +This is the default.
> +`yes`;; Re-encode the commit message into UTF-8.
> +`no`;; Preserve the original encoding.
> -[<git-rev-list-args>...]::
> +`<git-rev-list-args>...`::
> A list of arguments, acceptable to 'git rev-parse' and
> 'git rev-list', that specifies the specific objects and references
> to export. For example, `master~10..master` causes the
Shouldn't 'git rev-parse' and 'git rev-list' here be converted to
backticks e.g., `git rev-parse`, too?
Thanks.
| @@ -610,6 +610,8 @@ include::config/status.adoc[] | |||
|
|
|||
There was a problem hiding this comment.
Junio C Hamano wrote on the Git mailing list (how to reply to this email):
"Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
>
> The configuration options of git-svn are not treated like the other
> configuration options in the documentation. They are not listed in the
> config.adoc file and they are not documented in a dedicated file.
There is a slight discrepancy between the title (which talks about
adding ones that are not described) and the explanation (which talks
about moving option descriptions to config/svn.adoc). I guess both "not
documented anywhere so add them" and "documented but not centrally, so
move them" are happening in the patch, in which case we want to say so
in the explanation?
> diff --git a/Documentation/config.adoc b/Documentation/config.adoc
> index aa6360e230..c853578cac 100644
> --- a/Documentation/config.adoc
> +++ b/Documentation/config.adoc
> @@ -610,6 +610,8 @@ include::config/status.adoc[]
>
> include::config/submodule.adoc[]
>
> +include::config/svn.adoc[]
> +
Looking ahead, this is included in the git-svn manual page. Is the
intention to have all the svn.* related configuration variables in the
svn.adoc file?
> +`svn.findcopiesharder`::
> +`svn.l`::
> + Pass `--find-copies-harder` and `-l<num>` directly to
> + linkgit:git-diff-tree[1]. Used with the `dcommit`, `set-tree` and
> + `commit-diff` commands.
Grouping these two together leaves it unstated in git-config(1) that
svn.findcopiesharder is a boolean while svn.l takes an integer limit.
> +`svn.useSvmProps`::
> +`svn-remote.<name>.useSvmProps`::
> + Re-map repository URLs and UUIDs from mirrors created using SVN::Mirror
> + (or svk) for metadata.
> ++
> +If an SVN revision has a property, `svm:headrev`, it is likely
> +that the revision was created by SVN::Mirror (also used by SVK).
> +The property contains a repository UUID and a revision. We want
> +to make it look like we are mirroring the original URL, so
> +introduce a helper function that returns the original identity
> +URL and UUID, and use it when generating metadata in commit
> +messages.
The final sentence ("so introduce a helper function...") was already in
git-svn.adoc, so it is not an issue you introduced, though exposing it
in git-config(1) is a good excuse to trim it if you reroll.
Looking at read_git_config() in git-svn.perl and perl/Git/SVN.pm, there
are still svn.* and svn-remote.<name>.* keys used in the code that are
absent from config/svn.adoc, such as
- svn.username (already mentioned under --username in git-svn.adoc)
- svn.repack
- svn.repackflags
- svn.nocheckout
- svn.quiet
- svn.logwindowsize
- svn.localtime
- svn.copysimilarity
- svn.configdir
- svn.noauthcache
- svn-remote.<name>.url
- svn-remote.<name>.fetch
- svn-remote.<name>.branches
- svn-remote.<name>.tags
- svn-remote.<name>.preserve-empty-dirs
- svn-remote.<name>.placeholder-filename
- svn-remote.<name>.followparent
It may be worth stating in the commit message which scope of config keys
this file aims to cover. Or are these not yet covered, with the
intention of covering all of them eventually?
> diff --git a/Documentation/git-svn.adoc b/Documentation/git-svn.adoc
> index 597697d42d..ff8a3c2d39 100644
> --- a/Documentation/git-svn.adoc
> +++ b/Documentation/git-svn.adoc
> @@ -756,92 +756,7 @@ config key: `svn.followparent`
> CONFIG FILE-ONLY OPTIONS
> ------------------------
>
> -`svn.noMetadata`::
> ...
> - option to be "true".
> +include::config/svn.adoc[]
The list of configuration variables is included under the heading
"CONFIG FILE-ONLY OPTIONS" here, but many of those svn.* variables like
svn.addAuthorFrom and svn.authorsfile do have command-line flags
documented earlier in the same manpage.
If config/svn.adoc is meant to serve as the full git-config(1) list
(similar to config/sendemail.adoc or config/fastimport.adoc), it would
fit much better under the CONFIGURATION section of git-svn.adoc, perhaps
with Documentation/includes/cmd-config-section-all.adoc, while keeping
the section header accurate.
Thanks.| @@ -1,4 +1,4 @@ | |||
| fastimport.unpackLimit:: | |||
| `fastimport.unpackLimit`:: | |||
There was a problem hiding this comment.
Junio C Hamano wrote on the Git mailing list (how to reply to this email):
"Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
>
> * convert synopsis section
> * convert options to `` style
> * convert _<placeholder>_ style
>
> Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
> ---
The intentions are stated very clearly, which is good.
> ---import-marks-if-exists=<file>::
> - Like --import-marks but instead of erroring out, silently
> +`--import-marks-if-exists=<file>`::
> + Load marks like `--import-marks` but, instead of erroring out, silently
> skips the file if it does not exist.
Similar to the "Fetch ... rebases" we saw earlier in [1/4], "Load
... but ... skips" mixes the imperative mood with the third-person
singular; "silently skip" would match "Load".
> -where `<count>` is the exact number of bytes appearing within
> -`<raw>`. The value of `<count>` is expressed as an ASCII decimal
> -integer. The `LF` on either side of `<raw>` is not
> +where _<count>_ is the exact number of bytes appearing within
> +_<raw>_. The value of _<count>_ is expressed as an ASCII decimal
> +integer. The `LF` on either side of _<raw>_ is not
> included in `<count>` and will not be included in the imported data.
Shouldn't the last `<count>` also be _<count>_? Similarly, don't
placeholders like `<idnum>`, `<object-identifier>`, `<time>`,
`<offutc>`, and `<tz>` elsewhere in this file want to use the
_<placeholder>_ form, instead of the `<placeholder>` form?
> -import-marks::
> -import-marks-if-exists::
> - Like --import-marks except in two respects: first, only one
> - "feature import-marks" or "feature import-marks-if-exists"
> +
> +`import-marks`::
> +`import-marks-if-exists`::
> + Use the corresponding marks option with two differences: first, only one
> + `feature import-marks` or `feature import-marks-if-exists`
> command is allowed per stream; second, an --import-marks=
Here --import-marks= missed backticks, and a few lines in this
description switched from a leading tab to two spaces.
> - or --import-marks-if-exists command-line option overrides
> - any of these "feature" commands in the stream; third,
> - "feature import-marks-if-exists" like a corresponding
> + or the `--import-marks-if-exists` command-line option overrides
> + any of these `feature` commands in the stream; third,
> + `feature import-marks-if-exists` like a corresponding
> command-line option silently skips a nonexistent file.
Thanks.| @@ -7,86 +7,87 @@ git-svn - Bidirectional operation between a Subversion repository and Git | |||
|
|
|||
There was a problem hiding this comment.
Junio C Hamano wrote on the Git mailing list (how to reply to this email):
"Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
> -'rebase'::
> - This fetches revisions from the SVN parent of the current HEAD
> +`rebase`::
> + Fetch revisions from the SVN parent of the current HEAD
> and rebases the current (uncommitted to SVN) work against it.
Changing "This fetches" to imperative "Fetch" makes the verb on the next
line disagree ("Fetch ... and rebases"). Changing "rebases" to "rebase"
fixes that.
> -[verse]
> +[synopsis]
> config key: svn-remote.<name>.commiturl
> config key: svn.commiturl (overwrites all svn-remote.<name>.commiturl options)
> +
The [synopsis] attribute makes the AsciiDoc/Asciidoctor filter highlight
command tokens inside the block, so prose words like "config", "key:",
"overwrites", "all", and "options" end up rendered as literal code.
Elsewhere in this patch you removed [verse] and backtick-quoted the key
instead, e.g.,
config key: `svn.rmdir`
Doing the same here and in the svn.pushmergeinfo entry under --mergeinfo
would keep the rendering clean and consistent, wouldn't it?
> --F <filename>;;
> ---file=<filename>;;
> - Take the commit message from the given file. This option
> +`-F <filename>`;;
> +`--file=<filename>`;;
> + Take the commit message from the file `<filename>`. This option
> disables the `--edit` option.
A few days ago I was referring somebody else to your earlier series [*]
and noticed that you would have said _<filename>_ not `<filename>` in
running text. I am not quite sure about the differences, but as I
noticed the use of `<filename>` here,...
[*] e9a99ef2da (doc: convert git-format-patch synopsis and
options to new style, 2026-07-23), appearing as a part of
bf6bc2ae42 (Merge branch 'ja/doc-synopsis-style-yet-more',
2026-08-11)
> +`-r <arg>`::
> +`--revision <arg>`::
> + Fetch the given revision range for partial/cauterized history.
> + Only used with the `fetch` command.
> +
> -This allows revision ranges for partial/cauterized history
> -to be supported. $NUMBER, $NUMBER1:$NUMBER2 (numeric ranges),
> -$NUMBER:HEAD, and BASE:$NUMBER are all supported.
> +`<rev-num>`, `<ref-num-1>:<rev-num-2>` (numeric ranges),
> +`<rev-num>:HEAD`, and `BASE:<rev-num>` are all supported.
Shouldn't the left hand side of ':' be <rev-num-1> instead of ref-num-1?
> ---authors-prog=<filename>::
> - If this option is specified, for each SVN committer name that
> - does not exist in the authors file, the given file is executed
> - with the committer name as the first argument. The program is
> - expected to return a single line of the form "Name <email>" or
> +`--authors-prog=<program>`::
> + Execute `<program>` for each SVN committer name that
> + does not exist in the authors file, with the committer name as the
> + first argument. The program is
> + expected to return a single line of the form "Name _<email>_" or
> "Name <>", which will be treated as if included in the authors
The reference to author ident "Name _<email>_" or "Name <>" differs from
the backticked "Name <email>" form used in patch 2/4. Not clear to me
which one we want to standardize on.
> file.
> +
> -Due to historical reasons a relative 'filename' is first searched
> -relative to the current directory for 'init' and 'clone' and relative
> -to the root of the working tree for 'fetch'. If 'filename' is
> -not found, it is searched like any other command in '$PATH'.
> +Due to historical reasons a relative `filename` is first searched
> +relative to the current directory for `init` and `clone` and relative
> +to the root of the working tree for `fetch`. If `filename` is
> +not found, it is searched like any other command in `$PATH`.
The same comment on `<program>` in the first sentence (vs _<program>_).
Because the option parameter was renamed from <filename> to <program>,
the second paragraph now refers to a filename that is no longer in the
option header. SHouldn't it be "a relative _<filename>_ is first ..."?
Thanks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This series converts some more manpages to synopsis style.
It also moves the config from git-svn page to a dedicated file also included in git-config.