From: Linus Torvalds Subject: Re: [RFC PATCH] Re: Empty directories... Date: Sun, 22 Jul 2007 10:28:10 -0700 (PDT) Message-ID: References: <85lkdezi08.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> <85644dqoig.fsf@lola.goethe.zz> <85r6n1p7sb.fsf@lola.goethe.zz> <85fy3hp3f2.fsf@lola.goethe.zz> <85abtpoydg.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 19:28:42 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 1ICfEV-0000yr-03 for gcvg-git@gmane.org; Sun, 22 Jul 2007 19:28:39 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756958AbXGVR2X (ORCPT ); Sun, 22 Jul 2007 13:28:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755288AbXGVR2W (ORCPT ); Sun, 22 Jul 2007 13:28:22 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:44649 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754767AbXGVR2U (ORCPT ); Sun, 22 Jul 2007 13:28:20 -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 l6MHSGNc015109 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Jul 2007 10:28:17 -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 l6MHSAf8015460; Sun, 22 Jul 2007 10:28:11 -0700 In-Reply-To: <85abtpoydg.fsf@lola.goethe.zz> X-Spam-Status: No, hits=-3.215 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 Sun, 22 Jul 2007, David Kastrup wrote: > > > I told you. Several times. That "." is pointless exactly because > > it's in _every_ tree, and as such is no longer "content". > > "." is in every _non-empty_ directory tree. You're pointless. We have no problems at all with non-empty trees. We know exactly what they are. We keep track of them fine, and we do not need a totally pointless "." entry for them. > But we are talking about > permitting _empty_ trees in the repository. And WE ALREADY DO. The empty tree looks like this: "". It has a SHA1 of 4b825dc642cb6eb9a060e54bf8d69288fbee4904. It works today, and in fact, git uses it already. Try this: git ls-tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 in the git repository. What do you think that is? Your "." is *pointless*. And it's _worse_ than pointless: it's not "content". It doesn't add any information. It's not something you can match up against the working tree meaningfully, exactly because *every* working tree has it. As such, it's total non-information. Linus