From: Junio C Hamano Date: Sat, 13 Aug 2005 19:45:38 GMT Subject: Re: Add an empty directory? Message-ID: <7v64u9mxi5.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20050813180008.GJ5608@pasky.ji.cz> Petr Baudis writes: > the object databases supports it, but the index file does not. But yes, > it should be supported, I think. I think if this is done correctly "read-tree -m -u" two-tree switch could even remove directories that existed in the old tree but not in the new tree that has become empty. On the other hand, although I haven't started looking, adding this to index file might involve a major surgery. Practically everybody expects it is does not have an directory entry. This includes reading trees, merging two or more stages, finding directory/file conflicts, etc. etc...