From: Junio C Hamano Subject: Re: [PATCH] Add an option to git-ls-tree to display also the size of object Date: Tue, 15 May 2007 18:07:56 -0700 Message-ID: <7vabw5h8yb.fsf@assigned-by-dhcp.cox.net> References: <11792246701367-git-send-email-jnareb@gmail.com> <200705160119.10802.jnareb@gmail.com> <7vps51hacw.fsf@assigned-by-dhcp.cox.net> <200705160254.38463.jnareb@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org To: Jakub Narebski X-From: git-owner@vger.kernel.org Wed May 16 03:08:23 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 1Ho804-0000k8-GZ for gcvg-git@gmane.org; Wed, 16 May 2007 03:08:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759618AbXEPBIO convert rfc822-to-quoted-printable (ORCPT ); Tue, 15 May 2007 21:08:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759675AbXEPBIN (ORCPT ); Tue, 15 May 2007 21:08:13 -0400 Received: from fed1rmmtao105.cox.net ([68.230.241.41]:38512 "EHLO fed1rmmtao105.cox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758961AbXEPBIN convert rfc822-to-8bit (ORCPT ); Tue, 15 May 2007 21:08:13 -0400 Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao105.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070516010813.CKHZ22040.fed1rmmtao105.cox.net@fed1rmimpo02.cox.net>; Tue, 15 May 2007 21:08:13 -0400 Received: from assigned-by-dhcp.cox.net ([68.5.247.80]) by fed1rmimpo02.cox.net with bizsmtp id zd7w1W00N1kojtg0000000; Tue, 15 May 2007 21:08:09 -0400 In-Reply-To: <200705160254.38463.jnareb@gmail.com> (Jakub Narebski's message of "Wed, 16 May 2007 02:54:37 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Jakub Narebski writes: > Junio C Hamano wrote: >> Jakub Narebski writes: >>> Junio C Hamano wrote: > >>>> =C2=A0 Also I suspect that having to show the size of a tree objec= t, >>>> =C2=A0 expressed in terms of the canonical representation, might >>>> =C2=A0 force packv4 aware ls-tree to convert its traversal efficie= nt >>>> =C2=A0 representation to the canonical one only to get its size. >>> >>> It still will be accessible, but perhaps it would be less efficient >>> with v4 pack. It is I think acceptable that -l needs more CPU (and = I/O)=20 >>> time... >>=20 >> Shawn answered this better than I could. =C2=A0I am moderately >> negative on the size of tree objects part. >>=20 >> But modulo these details, I agree that being able to get the >> size of each blob would be useful. > > We can always return ' ', '-', or '0' as size for tree entries. > I wonder what to do about commits/gitlinks/subprojects... The same "the size of this type of object is not given", I would say.