Re: [RFC PATCH] Re: Empty directories...
- From
David Kastrup <dak@gnu.org>
- Date
- Jul 19, 2007, 17:47 UTC
- Message-ID
- <867iow2smh.fsf@lola.quinscape.zz>
- In-Reply-To
- <CC669745-4434-478E-9A24-E474071578C6@silverinsanity.com>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 19 quoted lines
> Hi, > > On Thu, 19 Jul 2007, Brian Gernhardt wrote: > >> On Jul 19, 2007, at 12:17 PM, Johannes Schindelin wrote: >> >> > 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_. >> >> But this alters the content of the directory away from what I want it to be, >> namely empty. You aren't addressing the concept of tracking an empty >> directory, you're just saying you won't do it. > > OMG last time I checked, my _empty_ directory contained "." and "..". > What do I do now?
If you have a suitable Solaris system, you could try
sudo unlink . sudo unlink ..
and have a chance that this will work until the next file system check.
I don't think that adding tracking of ".." would be easy to implement in git, but I seem to remember that somebody recently proposed a plan of at least tracking "." which would seem better than nothing and possibly more useful than "sudo unlink .".
All the best,
-- David Kastrup