diff options
author | Nicolas Pitre <nico@cam.org> | 2007-10-30 14:57:35 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-10-30 16:08:40 -0700 |
commit | 29e63ed3f6962cd96f7153e9f492f36797d25c33 (patch) | |
tree | 92155b51bf3aa22e1ea2cec879e86869f75a1b32 /index-pack.c | |
parent | cf84d51c43fa05cce416bfa3f5db3ad70773abdf (diff) | |
download | git-29e63ed3f6962cd96f7153e9f492f36797d25c33.tar.gz |
add throughput display to index-pack
... and call it "Receiving objects" when over stdin to look clearer
to end users.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'index-pack.c')
-rw-r--r-- | index-pack.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/index-pack.c b/index-pack.c index 879ea15485..61ea7621be 100644 --- a/index-pack.c +++ b/index-pack.c @@ -87,6 +87,8 @@ static void *fill(int min) die("early EOF"); die("read error on input: %s", strerror(errno)); } + if (from_stdin) + display_throughput(progress, ret); input_len += ret; } while (input_len < min); return input_buffer; @@ -406,7 +408,9 @@ static void parse_pack_objects(unsigned char *sha1) * - remember base (SHA1 or offset) for all deltas. */ if (verbose) - progress = start_progress("Indexing objects", nr_objects); + progress = start_progress( + from_stdin ? "Receiving objects" : "Indexing objects", + nr_objects); for (i = 0; i < nr_objects; i++) { struct object_entry *obj = &objects[i]; data = unpack_raw_entry(obj, &delta->base); |