Re: [RFC PATCH] Re: Empty directories...
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jul 19, 2007, 05:38 UTC
- Message-ID
- <20070719053858.GE32566@spearce.org>
- In-Reply-To
- <7vbqe93qtv.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <gitster@pobox.com> wrote:
Show 14 quoted lines
> Another issue I thought about was what you would do in the step > 3 in the following: > > 1. David says "mkdir D; git add D"; you add S_IFDIR entry in > the index at D; > > 2. David says "date >D/F; git add D/F"; presumably you drop D > from the index (to keep the index more backward compatible) > and add S_IFREG entry at D/F. > > 3. David says "git rm D/F". > > Have we stopped keeping track of the "empty directory" at this > point?
Sadly yes. But I don't think that's what the folks who want to track empty directories want to have happen here.
Which is why I'm thinking we just need to track the directory, as a node in the index, even if there are files in it, and even if we got that directory and its contained files there by just unpacking trees.
-- Shawn.