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

Re: [PATCH] Do not show progress meter while checking files out.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 20, 2007, 14:46 UTC
Message-ID
<20070420144656.GA17480@spearce.org>
In-Reply-To
<alpine.LFD.0.98.0704200900460.4504@xanadu.home>
Nicolas Pitre <nico@cam.org> wrote:
Show 5 quoted lines
> On Fri, 20 Apr 2007, Junio C Hamano wrote:
> 
> > Originally I thought it would take too long to check out many
> > files and to prevent people from getting bored, I added progress
> > meter.  But it feels a bit too noisy; let's disable it.
...
> What about looking at the number of files checked out after say 2 
> seconds, and if it is still below 50% of the total then turn on the 
> progress display?
I agree completely with Nico, and everyone else.

Nico's approach is the right way to handle that particular progress meter. It should also be enabled the same way in git-checkout.sh and git-merge.sh (for the fast-forward case).

On Windows, with a cheap+slow 5400 RPM IDE drive, a slow processor and a virus scanner that has higher priority than the mouse driver, a simple branch switch that updates only 500 files (out of almost 10,000) can take 30 seconds. Ok, sure, maybe I shouldn't switch branches on such horrid hardware[*1*], but a progress meter would be very nice for when I do.

On the other hand, the one I removed from merge-recursive was braindamaged. It only knew the amount of work remaining once it had finished it. That meant the meter was completely useless. Though maybe something based on a 2 second timer like Nico is proposing for read-tree might still be useful in merge-recursive.

*1*: Of course my Solaris 9 system does that switch so fast it makes
     my head spin.  Ahh, what a good system modern UNIXes are...
-- 
Shawn.
Previous: Nicolas PitreNext: J. Bruce Fields
Message 7 of 13 in “git-add -u: match the index with working tree.”
  1. git-add -u: match the index with working tree.Junio C Hamano, Apr 20, 2007
  2. Do not show progress meter while checking files out.Junio C Hamano, Apr 20, 2007
  3. Johannes SixtApr 20, 2007
  4. Andy ParkinsApr 20, 2007
  5. Matthieu MoyApr 20, 2007
  6. Nicolas PitreApr 20, 2007
  7. Shawn O. PearceApr 20, 2007
  8. J. Bruce FieldsApr 20, 2007
  9. Karl HasselströmApr 20, 2007
  10. Junio C HamanoApr 20, 2007
  11. Nikolai WeibullApr 20, 2007
  12. Karl HasselströmApr 20, 2007
  13. Junio C HamanoApr 20, 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.