git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add an option to git-ls-tree to display also the size of object

From
Junio C Hamano <junkio@cox.net>
Date
May 16, 2007, 01:07 UTC
Message-ID
<7vabw5h8yb.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200705160254.38463.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 21 quoted lines
> Junio C Hamano wrote:
>> Jakub Narebski <jnareb@gmail.com> writes:
>>> Junio C Hamano wrote:
>
>>>>   Also I suspect that having to show the size of a tree object,
>>>>   expressed in terms of the canonical representation, might
>>>>   force packv4 aware ls-tree to convert its traversal efficient
>>>>   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) 
>>> time...
>> 
>> Shawn answered this better than I could.  I am moderately
>> negative on the size of tree objects part.
>> 
>> 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.

Previous: Jakub NarebskiNext: Jakub Narebski
Message 6 of 9 in “Add an option to git-ls-tree to display also the size of object”
  1. Add an option to git-ls-tree to display also the size of objectJakub Narebski, May 15, 2007
  2. Junio C HamanoMay 15, 2007
  3. Jakub NarebskiMay 15, 2007
  4. Junio C HamanoMay 16, 2007
  5. Jakub NarebskiMay 16, 2007
  6. Junio C HamanoMay 16, 2007
  7. Add an option to git-ls-tree to display also the size of blobJakub Narebski, May 19, 2007
  8. Shawn O. PearceMay 20, 2007
  9. Shawn O. PearceMay 15, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.