From: Linus Torvalds Subject: Re: [RFC PATCH] Re: Empty directories... Date: Sat, 21 Jul 2007 16:50:42 -0700 (PDT) Message-ID: References: <85lkdezi08.fsf@lola.goethe.zz> <858x9ez1li.fsf@lola.goethe.zz> =?ISO-8859-1?Q?=20?= <85644hxujp.fsf@lola.goethe.zz> <851wf2bcqy.fsf@lola.goethe.zz> =?ISO-8859-1?Q?=20?= <85odi69vgt.fsf@lola.goethe.zz> <85tzrxslms.fsf@lola.goethe.zz> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii Cc: git@vger.kernel.org To: David Kastrup X-From: git-owner@vger.kernel.org Sun Jul 22 01:51:39 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1ICOja-0003wZ-D0 for gcvg-git@gmane.org; Sun, 22 Jul 2007 01:51:38 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752117AbXGUXvZ (ORCPT ); Sat, 21 Jul 2007 19:51:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751998AbXGUXvZ (ORCPT ); Sat, 21 Jul 2007 19:51:25 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:51916 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869AbXGUXvY (ORCPT ); Sat, 21 Jul 2007 19:51:24 -0400 Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [207.189.120.55]) by smtp2.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id l6LNomUv006128 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 21 Jul 2007 16:50:49 -0700 Received: from localhost (localhost [127.0.0.1]) by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id l6LNogtI007743; Sat, 21 Jul 2007 16:50:43 -0700 In-Reply-To: <85tzrxslms.fsf@lola.goethe.zz> X-Spam-Status: No, hits=-3.212 required=5 tests=AWL,BAYES_00,OSDL_HEADER_SUBJECT_BRACKETED X-Spam-Checker-Version: SpamAssassin 3.1.0-osdl_revision__1.12__ X-MIMEDefang-Filter: osdl$Revision: 1.181 $ X-Scanned-By: MIMEDefang 2.53 on 207.189.120.14 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: On Sat, 21 Jul 2007, David Kastrup wrote: > > 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