From: David Kastrup Date: Thu, 19 Jul 2007 16:28:16 GMT Subject: Re: [RFC PATCH] Re: Empty directories... Message-ID: <86ir8g4au7.fsf@lola.quinscape.zz> In-Reply-To: Johannes Schindelin writes: > Here a short description, which you should read until you understand > it and then leave me alone: > > To add a directory to the tracked content, you have to _mark_ it as > tracked. So that when you remove the _real_ content of the > directory, Git will not remove it. Correct. That is what my proposal is about. > Alas, we already have such a marker. It is called ".gitignore", and > has been ignored by _you_. There is _nothing_ wrong, from a > technical standpoint, to call this marker ".gitignore", and it is > _also_ not wrong to put this marker into the file system _in > addition_ to the index. Uh, then the directories are no longer empty. > So go and add your directories via that marker, and _be done with > it_. But one is not done before running find -name .gitignore -delete and then the next recursive add will remove the .gitignore "markers". The idea of "." is to have a marker that does _not_ appear in the work directory. -- David Kastrup