On Fri, 20 Jul 2007, Julian Phillips wrote: > On Fri, 20 Jul 2007, Linus Torvalds wrote: > > > > So here's my standpoint: > > > > - people who use git natively might as well use the ".gitignore" trick. > > It really *does* work, and there really aren't any downsides. Those > > directories will stay around forever, until you decide that you don't > > want them any more. Problem solved. > > Personally I quite like this approach - I'm going to use it to keep all the > empty directories from Subversion in my importer. It seems to address > everthing quite neatly. The really sad part about this discussion is that the ".gitignore trick" is really technically no different at all from the one that David Kastrup has been advocating a few times, except he calls his ".gitignore" just ".", and seems to think that it's somehow different. It is true that ".gitignore" and "." _are_ different. But they are actually different in the sense that the ".gitignore" thing is something you can control, while the "." thing is something that is in all directories on UNIX, which is exactly why it _must_not_ be used by git to mark existence. Exactly because it has thus lost its ability to be something you can tune per-directory in the working tree! That said, I actually like my patch, because the git tree structures actually lend themselves very naturally to the "empty tree", and I know people have even built up those kinds of trees on purpose, even if the index doesn't support that notion. So in that sense, teaching the index about an empty tree is in some ways the "right thing" to do, if only because it means that the index can finally express something that the tree objects themselves have always been able to validly encode. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html