Re: Make "git clone" less of a deathly quiet experience
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Feb 11, 2006, 17:39 UTC
- Message-ID
- <Pine.LNX.4.64.0602110936510.3691@g5.osdl.org>
- In-Reply-To
- <7vslqqo341.fsf@assigned-by-dhcp.cox.net>
On Fri, 10 Feb 2006, Junio C Hamano wrote:
> > Would you suggest doing that with "checkout-index -v", that > shows "1 path1\r2 path2\r3 path3\r...\rDone.\n"?
Not if it shows every single path.
When going tty output, we should be careful to limit it to not do tons and tons of lines. The download output does gettimeofday to limit itself to max 2 times per sec, and the percentage output of git-unpack-objects similarly limits itself so that it never spews _tons_ of stuff to the terminal.
Under many loads, the terminal will be a lot slower than actually writing a file ("context switch to gnome-term + context switch to X + set up complex text output").
Linus