Re: [RFC PATCH] Re: Empty directories...
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 21, 2007, 23:50 UTC
- Message-ID
- <alpine.LFD.0.999.0707211650190.3607@woody.linux-foundation.org>
- In-Reply-To
- <85tzrxslms.fsf@lola.goethe.zz>
On Sat, 21 Jul 2007, David Kastrup wrote:
Show 6 quoted lines
> > tree1: > 0?0000 . -> dir1 > 100644 a.c -> blob1 > 040000 a -> tree2 > 100644 abc -> blob3
No. Totally broken. That "." entry not only doesn't buy you anything, it is *impossible*. You cannot make an object point to itself. Not possible.
Tell me how to calculate the SHA1 for the result. Also, tell me what the *point* is. There is none.
> Linus, a directory is simply non-existent inside of git.
You need to learn git first.
A directory doesn't exist IN THE INDEX (until my patches). But you need to learn about the object database and the SHA1's. That's the real meat of git, and it sure as hell knows about directories.
Linus