hoi :) On Tue, Nov 21, 2006 at 11:04:46AM +0100, Jakub Narebski wrote: > "bind" header in commit objects is meant as a kind of shortcut, to ease > reachability checking (you don't need to recurse into directories). Well, but you already have to recurse to find all objects which are reachable by a commit, so you don't loose anything. > > The advantage in your proposal would be that submodules would > > be visible immediately when looking at the commit, > > without having to traverse the entire tree. > > This may be worthwhile when showing the combined history of parent > > and submodules. > > That was the idea. On the other hand that only has to be done once anyway. After you traversed the tree once you can create your own (in memory) cache of submodules connected to the tree. While walking the commits backwards, you only have to check those parts of the tree which have changed. So it may even be suitable for larger repositories. But clearly it is not as low as with the in-commit cache. So we have to weight complexity of the data storage with runtime complexity. Opinions? -- Martin Waitz
Attachment:
signature.asc
Description: Digital signature