Jeff King [off-list ref] writes:
So I suppose another option would be to teach ls-files a "prefix" option
to add to each filename, and just pass in the submodule path. Then you
can let the sub-processes write directly to the common stdout, and I
think it would be safe to blindly pass the parent argv into the child
processes.
I think that is a sensible way to do this, instead of reading from -z
and showing things depending on various output modes you were told
to use.