Re: [RFC PATCH] Re: Empty directories...
- From
David Kastrup <dak@gnu.org>
- Date
- Jul 20, 2007, 05:58 UTC
- Message-ID
- <85sl7jty43.fsf@lola.goethe.zz>
- In-Reply-To
- <7vir8f24o2.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> Linus Torvalds <torvalds@linux-foundation.org> writes: > >> So the whole notion of "remembering" whether a directory was added >> explicitly as an empty directory or not is just not a sensible concept in >> git. > > That is true if it is implemented as David suggested, to have a > phony "." entry in the tree object itself.
Unix file systems contain a phony "." entry in the directory itself, and have survived in spite of this.
> The object name of such a tree (when it contains blobs and trees > underneath) will be different from a tree that contains the same set > of blobs and trees. It would destroy the fundamental concepts of > git.
Like "." destroyed the fundamental concepts of Unix filesystems.
-- David Kastrup, Kriemhildstr. 15, 44793 Bochum