Re: "submodule foreach" much slower than removed "submodule--helper --list"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 15, 2022, 18:37 UTC
- Message-ID
- <xmqq35bp53xg.fsf@gitster.g>
- In-Reply-To
- <Y0r6iAv1OVUVYNGc@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
>> We could mimic "find" and make "foreach" that has no action default >> to an equivalent of "echo" that is done internally without forking. > > That would be reasonable to me, though I wonder what the output format > should be. Just name, or name/oid? Once you start having options, you > might as well just add a separate "git submodule list" that can take > them.
Users of "find" seem to be happy with "-print" being the default, so whatever we were doing with the internal "helper --list" would be appropriate here. Folks who want different output can feed their own action.