From: Thomas Rast Date: Tue, 16 Feb 2010 10:01:42 GMT Subject: Re: Running git-archive recursively over submodules 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: > 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