From 893055f22e5395ec95231b4cc8a19046a3eb5b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Fri, 11 Oct 2013 17:24:29 +0200 Subject: indexer: clearer stats for thin packs Don't increase the number of total objects, as it can produce suprising progress output. The only addition compared to pre-thin is the addition of local_objects to allow an output similar to git's "completed with %d local objects". --- include/git2/types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/git2') diff --git a/include/git2/types.h b/include/git2/types.h index 3939353ee..4ff2ba4c4 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -212,6 +212,13 @@ typedef struct git_remote_callbacks git_remote_callbacks; /** * This is passed as the first argument to the callback to allow the * user to see the progress. + * + * - total_objects: number of objects in the packfile being downloaded + * - indexed_objects: received objects that have been hashed + * - received_objects: objects which have been downloaded + * - local_objects: locally-available objects that have been injected + * in order to fix a thin pack. + * - received-bytes: size of the packfile received up to now */ typedef struct git_transfer_progress { unsigned int total_objects; -- cgit v1.2.1