Re: Option for "git submodule foreach" to also run on the parent git?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 9, 2026, 15:15 UTC
- Message-ID
- <xmqqsea9591f.fsf@gitster.g>
- In-Reply-To
- <032a7767-2350-4312-a7b1-75080519c72a@nutanix.com>
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 overinstead?