diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-11 17:24:29 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-11 17:26:20 +0200 |
commit | 893055f22e5395ec95231b4cc8a19046a3eb5b4a (patch) | |
tree | 11bfecd3bd17817388d1381fd67abebe0b2fd950 /include | |
parent | 7fb6eb278b350f9f4caab5a3f72bfb70353fc40d (diff) | |
download | libgit2-893055f22e5395ec95231b4cc8a19046a3eb5b4a.tar.gz |
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".
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/types.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; |