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

Re: [PATCH] Add git-count-packs, like git-count-objects.

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 28, 2006, 14:28 UTC
Message-ID
<ehvpcs$20j$2@sea.gmane.org>
In-Reply-To
<20061028065143.GA14607@spearce.org>
Shawn Pearce wrote:
Show 16 quoted lines
> Junio C Hamano <junkio@cox.net> wrote:
>> Shawn Pearce <spearce@spearce.org> writes:
>> 
>> > Now that we are starting to save packs rather than unpacking into
>> > loose objects its nice to have a way to list the number of current
>> > packs and their total size.  This can help the user in deciding
>> > when its time to run `git repack -a -d`.
>> 
>> Why not just do "ls -lh $GIT_OBJECT_DIR/pack/pack-*.pack"???
> 
> Because whatever we decide to use to make a pack 'active' may not
> be that simple.
> 
> Whatever.  It was clearly a very tiny patch put together quickly
> before dinner tonight, perhaps not worth including at this point.
> Lets see what comes out of the other pack oriented discussion first.

Perhaps to nod add yet another command to already large set, rename git-count-objects to git-count end enhance it to count both loose objects and packs (or not, and use git-count-objects name).

BTW what does "garbage:" in git-count-objects -v mean? And in what units git-count-objects -v returns "size:" (git-count-objects says "kilobytes", why git-count-objects -v doesn't do the same)?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Shawn PearceNext: Nguyen Thai Ngoc Duy
Message 4 of 6 in “Add git-count-packs, like git-count-objects.”
  1. Add git-count-packs, like git-count-objects.Shawn Pearce, Oct 28, 2006
  2. Junio C HamanoOct 28, 2006
  3. Shawn PearceOct 28, 2006
  4. Jakub NarebskiOct 28, 2006
  5. Nguyen Thai Ngoc DuyNov 2, 2006
  6. Jakub NarebskiNov 3, 2006

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.