From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Nicolas Pitre <nico@cam.org>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: [PATCH] common progress display support
Date: Thu, 19 Apr 2007 11:03:06 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0704191053590.8822@racer.site> (raw)
In-Reply-To: <alpine.LFD.0.98.0704181422050.4504@xanadu.home>
Hi,
On Wed, 18 Apr 2007, Nicolas Pitre wrote:
> Instead of having this code duplicated in multiple places, let's have a
> common interface for progress display.
I like that!
> diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
> index 19fae4c..150f56c 100644
> --- a/builtin-pack-objects.c
> +++ b/builtin-pack-objects.c
> @@ -588,8 +588,10 @@ static off_t write_pack_file(void)
> f = sha1fd(fd, pack_tmp_name);
> }
>
> - if (do_progress)
> + if (do_progress) {
> fprintf(stderr, "Writing %u objects.\n", nr_result);
> + start_progress(&progress_state, "", nr_result);
> + }
It seems like it would be a good idea to change the signature of
start_progress() to take an optional message, like this:
start_progress(&progress_state, "Writing %u object.s\n",
"", nr_result);
It would make the added/deleted ratio even more impressive.
I only skimmed the patch, but like all of your patches, it looks good to
me.
Ciao,
Dscho
prev parent reply other threads:[~2007-04-19 9:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-18 18:27 [PATCH] common progress display support Nicolas Pitre
2007-04-18 18:56 ` Shawn O. Pearce
2007-04-18 19:20 ` Nicolas Pitre
2007-04-19 9:03 ` Johannes Schindelin [this message]
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=Pine.LNX.4.64.0704191053590.8822@racer.site \
--to=johannes.schindelin@gmx.de \
--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).