From: William Hatfield <whatfield.git@gmail.com>
To: "Jean-Noël AVILA" <jn.avila@free.fr>
Cc: git@vger.kernel.org, ps@pks.im, glencbz@gmail.com, avarab@gmail.com
Subject: Re: [PATCH 5/5] doc: document reversive traversal and related modes
Date: Mon, 2 Feb 2026 16:10:05 -0500 [thread overview]
Message-ID: <725FFEF5-90F5-4C6F-AACB-C372BBCC4C84@gmail.com> (raw)
In-Reply-To: <4710431.LvFx2qVVIh@piment-oiseau>
> On Feb 1, 2026, at 4:03 AM, Jean-Noël AVILA <jn.avila@free.fr> wrote:
>
> On Saturday, 31 January 2026 22:43:09 CET William Hatfield wrote:
>> Add documentation for the new --reverse-traversal, --append-superproject,
>> and --reversive flags to git-submodule.adoc. These flags enable post-order
>> traversal through nested submodule hierarchies, which is useful for
>> cleanup operations and dependency-ordered processing.
>>
>> The flags only take effect when used with --recursive.
>>
>> Signed-off-by: William Hatfield <whatfield.git@gmail.com>
>
> Hello,
>
> git-submodule is being transitioned to `synopsis` style of markup.
> See https://lore.kernel.org/git/
> 05e68e28257cd450463d253abe9b2995759bdc10.1769462744.git.gitgitgadget@gmail.com/
>
> In the same move, there is some work on style consistency of the manual pages.
>
> Below are the remarks on what changed:
>
>> ---
>> Documentation/git-submodule.adoc | 20 ++++++++++++++++++++
>> 1 file changed, 20 insertions(+)
>>
>> diff --git a/Documentation/git-submodule.adoc b/Documentation/git-
> submodule.adoc
>> index 95beaee561..2be477952d 100644
>> --- a/Documentation/git-submodule.adoc
>> +++ b/Documentation/git-submodule.adoc
>> @@ -437,6 +437,26 @@ options carefully.
>> only in the submodules of the current repo, but also
>> in any nested submodules inside those submodules (and so on).
>>
>> +--reverse-traversal::
>
> Now, options in description lists are backticked:
>
> `--reverse-traversal`::
>
>> + This option is only valid for the foreach command and requires
>> + `--recursive`. Process nested submodules in post-order (deepest
>> + first) rather than the default pre-order. This is useful for
>> + cleanup operations where nested submodules must be processed
>> + before their parents.
>
> Please start the description with the actual action of the option. Then, you
> can add conditions, context, explanation:
>
> Process nested [...]. This option is only valid [...]. This is useful [...]
>
> Thanks
Thank you for the input. I will remedy the documentation as described.
next prev parent reply other threads:[~2026-02-02 21:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-31 21:43 [PATCH 0/5] submodule: add 'reversive' traversal options to foreach William Hatfield
2026-01-31 21:43 ` [PATCH 1/5] t7425: add tests for reversive submodule traversal William Hatfield
2026-01-31 21:43 ` [PATCH 2/5] submodule: teach and plumb reverse-traversal behavior William Hatfield
2026-01-31 21:43 ` [PATCH 3/5] submodule: teach and plumb append-superproject behavior William Hatfield
2026-01-31 21:43 ` [PATCH 4/5] submodule: introduce reversive shorthand mode William Hatfield
2026-01-31 21:43 ` [PATCH 5/5] doc: document reversive traversal and related modes William Hatfield
2026-02-01 9:03 ` Jean-Noël AVILA
2026-02-02 21:10 ` William Hatfield [this message]
2026-02-02 18:52 ` [PATCH 0/5] submodule: add 'reversive' traversal options to foreach Junio C Hamano
2026-02-02 21:02 ` William Hatfield
2026-02-02 21:25 ` 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=725FFEF5-90F5-4C6F-AACB-C372BBCC4C84@gmail.com \
--to=whatfield.git@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=glencbz@gmail.com \
--cc=jn.avila@free.fr \
--cc=ps@pks.im \
/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