diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2012-10-31 10:43:08 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2012-11-01 06:21:49 +0100 |
commit | b4b935d8abd52e00f08518f39b6c59aab73926ce (patch) | |
tree | bacf7297fa317c0a5197e578c5eb3c349f5d1ff7 /src/pack-objects.c | |
parent | 3dfed9cb86a54bc8266057ef62b99f5d889f4efc (diff) | |
download | libgit2-b4b935d8abd52e00f08518f39b6c59aab73926ce.tar.gz |
packbuilder: add accessors for the number of total and written objects
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r-- | src/pack-objects.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index 8861084e1..7136d87eb 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -1292,6 +1292,16 @@ int git_packbuilder_insert_tree(git_packbuilder *pb, const git_oid *oid) return 0; } +uint32_t git_packbuilder_object_count(git_packbuilder *pb) +{ + return pb->nr_objects; +} + +uint32_t git_packbuilder_written(git_packbuilder *pb) +{ + return pb->nr_written; +} + void git_packbuilder_free(git_packbuilder *pb) { if (pb == NULL) |