diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index d7d9996f5e3b6ce58c4dbe26d89adf6d66de6281..b82762767013195fb58fe552296e61e951d92dbe 100644 (file)
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
f = sha1fd(fd, pack_tmp_name);
}
- if (do_progress) {
- fprintf(stderr, "Writing %u objects.\n", nr_result);
- start_progress(&progress_state, "", nr_result);
- }
+ if (do_progress)
+ start_progress(&progress_state, "Writing %u objects...", "", nr_result);
hdr.hdr_signature = htonl(PACK_SIGNATURE);
hdr.hdr_version = htonl(PACK_VERSION);
return;
array = xmalloc(array_size);
memset(array, 0, array_size);
- if (progress) {
- fprintf(stderr, "Deltifying %u objects.\n", nr_result);
- start_progress(&progress_state, "", nr_result);
- }
+ if (progress)
+ start_progress(&progress_state, "Deltifying %u objects...", "", nr_result);
do {
struct object_entry *entry = list[--i];
prepare_packed_git();
- if (progress) {
- fprintf(stderr, "Generating pack...\n");
- start_progress(&progress_state, "Counting objects: ", 0);
- }
+ if (progress)
+ start_progress(&progress_state, "Generating pack...",
+ "Counting objects: ", 0);
if (!use_internal_rev_list)
read_object_list_from_stdin();
else {