git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 0/3] submodule: foreach in reverse order, with the superproject

From
WHWilliam Hatfield <whatfield.git@gmail.com>
Date
Nov 21, 2026, 16:17 UTC
Message-ID
<20261121161755.20032-1-whatfield.git@gmail.com>
In-Reply-To
<20261028001529.81557-1-whatfield.git@gmail.com>
Hi,

A gentle follow-up on this series. Before I resend, I would like to know whether the overall design is acceptable.

The one open question is the name --reverse-traversal. Following Junio's earlier comments about "bottom-up" vs. {pre,in,post}order: it is not a tree-walk order, so there is no "in-order" counterpart. It reverses the existing order literally, siblings included, and it means the same thing with or without --recursive. Unlike in v1, the options no longer require --recursive. Is that acceptable as a name?

Upstream has moved since: a new t7427 appeared, so I would renumber mine to t7428, plus a trivial t/meson.build rebase. I'll send that as v3 once the design is agreed, or in a week or so if there is no objection.

Thanks, William

Previous: William Hatfield
Message 16 of 16 in “submodule: add 'reversive' traversal options to foreach”
  1. 0/5 submodule: add 'reversive' traversal options to foreachWilliam Hatfield, Jan 31, 2026
  2. 1/5 t7425: add tests for reversive submodule traversalWilliam Hatfield, Jan 31, 2026
  3. 2/5 submodule: teach and plumb reverse-traversal behaviorWilliam Hatfield, Jan 31, 2026
  4. 3/5 submodule: teach and plumb append-superproject behaviorWilliam Hatfield, Jan 31, 2026
  5. 4/5 submodule: introduce reversive shorthand modeWilliam Hatfield, Jan 31, 2026
  6. 5/5 doc: document reversive traversal and related modesWilliam Hatfield, Jan 31, 2026
  7. Jean-Noël AVILAFeb 1, 2026
  8. William HatfieldFeb 2, 2026
  9. Junio C HamanoFeb 2, 2026
  10. William HatfieldFeb 2, 2026
  11. Junio C HamanoFeb 2, 2026
  12. 0/3 submodule: foreach in reverse order, with the superprojectWilliam Hatfield, Oct 28, 2026
  13. 1/3 submodule: add --reverse-traversal to foreachWilliam Hatfield, Oct 28, 2026
  14. 2/3 submodule: add --include-superproject to foreachWilliam Hatfield, Oct 28, 2026
  15. 3/3 submodule: add --reversive shorthand to foreachWilliam Hatfield, Oct 28, 2026
  16. William HatfieldNov 21, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.