Re: Running git-archive recursively over submodules
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Feb 16, 2010, 10:01 UTC
- Message-ID
- <201002161101.42493.trast@student.ethz.ch>
- In-Reply-To
- <4B7A4B60.3090401@drmicha.warpmail.net>
On Tuesday 16 February 2010 08:38:08 Michael J Gruber wrote:
Show 9 quoted lines
> Thomas Rast venit, vidit, dixit 15.02.2010 21:56: > > while git ls-files -s | grep -q ^160000; do > > read_one_level > > done > > Am I blind, not seeing a recursion, or is there simply none? I reckon > you're reading the super project and one level of submodules into the > temporary index - which is fine for most purposes, of course. I would > say this is iterating over the submodules of the super project.
Well, the while condition reads "while there are submodule entries in my index". The read_one_level function then replaces those submodules with their corresponding trees, which of course may again contain submodule entries.
--
Thomas Rast
trast@{inf,student}.ethz.ch