summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-23 15:08:18 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-23 15:08:18 +0200
commitab46b1d8ebcdc820aefe2c1391d4be73939bce95 (patch)
treef24847504a3aa46be49dbfdab64f6d770914a6d3 /include
parentebbd48f00e87eab699862f03a457571ead3c53b1 (diff)
downloadlibgit2-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.h2
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;