From: Junio C Hamano <gitster@pobox.com>
To: Florian Schmidt <flosch@nutanix.com>
Cc: git@vger.kernel.org
Subject: Re: Option for "git submodule foreach" to also run on the parent git?
Date: Mon, 09 Mar 2026 08:15:08 -0700 [thread overview]
Message-ID: <xmqqsea9591f.fsf@gitster.g> (raw)
In-Reply-To: <032a7767-2350-4312-a7b1-75080519c72a@nutanix.com> (Florian Schmidt's message of "Mon, 9 Mar 2026 12:52:04 +0000")
Florian Schmidt <flosch@nutanix.com> writes:
> would there be an appetite for a new option to "git submodule foreach"
> to run the foreach command on the parent git repo as well?
Not from me. After all, the top-level superproject is not a
submodule from the point of view of the tree, is it? If it were
"git submodule-and-superproject foreach", then perhaps, but at that
point, wouldn't it be simpler to explain what you are doing as
do-this . ;# do it here
git submodule foreach do-this ;# do it there all over
instead?
next prev parent reply other threads:[~2026-03-09 15:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 12:52 Option for "git submodule foreach" to also run on the parent git? Florian Schmidt
2026-03-09 15:15 ` Junio C Hamano [this message]
2026-03-09 17:43 ` Florian Schmidt
2026-03-09 19:30 ` Jeff King
2026-03-09 21:03 ` brian m. carlson
2026-03-09 22:14 ` D. Ben Knoble
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=xmqqsea9591f.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=flosch@nutanix.com \
--cc=git@vger.kernel.org \
/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