diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-23 15:08:18 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-23 15:08:18 +0200 |
| commit | ab46b1d8ebcdc820aefe2c1391d4be73939bce95 (patch) | |
| tree | f24847504a3aa46be49dbfdab64f6d770914a6d3 /include | |
| parent | ebbd48f00e87eab699862f03a457571ead3c53b1 (diff) | |
| download | libgit2-ab46b1d8ebcdc820aefe2c1391d4be73939bce95.tar.gz | |
indexer: include the delta stats
The user is unable to derive the number of deltas in the pack, as that
would require them to capture the stats exactly in the moment between
download and final processing, which is abstracted away in the fetch.
Capture these numbers for the user and expose them in the progress
struct. The clone and fetch examples now also present this information
to the user.
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/types.h b/include/git2/types.h index 4ff2ba4c4..2d18d385a 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -225,6 +225,8 @@ typedef struct git_transfer_progress { unsigned int indexed_objects; unsigned int received_objects; unsigned int local_objects; + unsigned int total_deltas; + unsigned int indexed_deltas; size_t received_bytes; } git_transfer_progress; |
