Re: [RFC PATCH] Re: Empty directories...
- From
David Kastrup <dak@gnu.org>
- Date
- Jul 19, 2007, 16:28 UTC
- Message-ID
- <86ir8g4au7.fsf@lola.quinscape.zz>
- In-Reply-To
- <Pine.LNX.4.64.0707191715000.14781@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 6 quoted lines
> 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.
Show 5 quoted lines
> 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