Re: [RFC PATCH] Re: Empty directories...
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 19, 2007, 16:17 UTC
- Message-ID
- <Pine.LNX.4.64.0707191715000.14781@racer.site>
- In-Reply-To
- <6C96EBA9-CDCE-40EA-B0EC-F9195DBE83DB@silverinsanity.com>
Hi,
On Thu, 19 Jul 2007, Brian Gernhardt wrote:
Show 13 quoted lines
> On Jul 19, 2007, at 11:43 AM, Johannes Schindelin wrote: > > > I do not like it at all. "." already has a very special meaning. It > > is a _directory_, no place holder. > > And we're talking about using it to describe the directory. > > > More and more I get the impression that this thread is just not worth > > it. The problem was solved long ago, and all that is talked about here > > is how to complicate things. > > By solved, you mean ignored? There is no reason for git not to track > empty directories other than "we don't like it".
No, no, no, no, no!
You are really trying to annoy me, right?
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.
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.
So go and add your directories via that marker, and _be done with it_.