Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, "Jean-Noël Avila" <jn.avila@free.fr>
Subject: Re: [PATCH 2/4] doc: git-svn: add missing config options to the documentation
Date: Wed, 25 Nov 2026 06:14:03 -0800	[thread overview]
Message-ID: <xmqqo6bdathw.fsf@gitster.g> (raw)
In-Reply-To: <b6063c41e563697340d000969f61ce23f962d73b.1795556940.git.gitgitgadget@gmail.com> ("Jean-Noël Avila via GitGitGadget"'s message of "Tue, 24 Nov 2026 21:48:58 +0000")

"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.

  reply	other threads:[~2026-11-25 14:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 21:48 [PATCH 0/4] doc: convert git-svn, git-fast-{import,export} to synopsis Jean-Noël Avila via GitGitGadget
2026-11-24 21:48 ` [PATCH 1/4] doc: apply synopsis style conversion with git-svn Jean-Noël Avila via GitGitGadget
2026-11-25 16:27   ` Junio C Hamano
2026-11-24 21:48 ` [PATCH 2/4] doc: git-svn: add missing config options to the documentation Jean-Noël Avila via GitGitGadget
2026-11-25 14:14   ` Junio C Hamano [this message]
2026-11-24 21:48 ` [PATCH 3/4] doc: convert git-fast-import.adoc to synopsis style Jean-Noël Avila via GitGitGadget
2026-11-25 15:17   ` Junio C Hamano
2026-11-24 21:49 ` [PATCH 4/4] doc: convert git-fast-export.adoc " Jean-Noël Avila via GitGitGadget
2026-11-25  5:07   ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqo6bdathw.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=jn.avila@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox