From: "Shawn O. Pearce" <spearce@spearce.org>
To: Nicolas Pitre <nico@cam.org>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: [PATCH] Do not show progress meter while checking files out.
Date: Fri, 20 Apr 2007 10:46:56 -0400 [thread overview]
Message-ID: <20070420144656.GA17480@spearce.org> (raw)
In-Reply-To: <alpine.LFD.0.98.0704200900460.4504@xanadu.home>
Nicolas Pitre <nico@cam.org> wrote:
> 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.
next prev parent reply other threads:[~2007-04-20 14:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-20 8:42 [PATCH] git-add -u: match the index with working tree Junio C Hamano
2007-04-20 8:42 ` [PATCH] Do not show progress meter while checking files out Junio C Hamano
2007-04-20 9:37 ` Johannes Sixt
2007-04-20 12:37 ` Andy Parkins
2007-04-20 12:46 ` Matthieu Moy
2007-04-20 13:04 ` Nicolas Pitre
2007-04-20 14:46 ` Shawn O. Pearce [this message]
2007-04-20 13:12 ` J. Bruce Fields
2007-04-20 10:49 ` [PATCH] git-add -u: match the index with working tree Karl Hasselström
2007-04-20 11:16 ` Junio C Hamano
2007-04-20 11:18 ` Nikolai Weibull
2007-04-20 11:39 ` Karl Hasselström
2007-04-20 11:17 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070420144656.GA17480@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=nico@cam.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).