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

Re: [PATCH] prune: show progress while marking reachable objects

From
Jeff King <peff@peff.net>
Date
Nov 8, 2011, 05:31 UTC
Message-ID
<20111108053149.GA29643@sigill.intra.peff.net>
In-Reply-To
<1320494408-6373-1-git-send-email-pclouds@gmail.com>
On Sat, Nov 05, 2011 at 07:00:08PM +0700, Nguyen Thai Ngoc Duy wrote:
> prune already shows progress meter while pruning. The marking part may
> take a few seconds or more, depending on repository size. Show
> progress meter during this time too.
Thanks, this is a nice start. It's missing a few things IMHO:
  1. It actually counts commits, not all objects. I'm tempted to say
     this doesn't matter, as any eye candy is helpful. Except that the
     most common use of prune is as part of "git gc", in which case
     pack-objects will have just done the "counting objects" phase and
     come up with some number. If we count all objects, then our end
     number is the same (modulo any .keep packs, but at least it's
     probably in the same order of magnitude). That gives the user a
     better sense of completion time.
  2. Prune should learn --progress/--no-progress, isatty(2), etc. And
     git-gc should pass --no-progress when it's told to be quiet.
Patches for both in a moment.
-Peff
Previous: Nguyễn Thái Ngọc DuyNext: Jeff King
Message 2 of 7 in “prune: show progress while marking reachable objects”
  1. prune: show progress while marking reachable objectsNguyễn Thái Ngọc Duy, Nov 5, 2011
  2. Jeff KingNov 8, 2011
  3. 1/2 prune: handle --progress/no-progressJeff King, Nov 8, 2011
  4. prune: handle --progress/no-progressNguyễn Thái Ngọc Duy, Nov 9, 2011
  5. 2/2 reachable: per-object progressJeff King, Nov 8, 2011
  6. Junio C HamanoNov 8, 2011
  7. Nguyen Thai Ngoc DuyNov 9, 2011

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.