aboutsummaryrefslogtreecommitdiff
path: root/oidmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'oidmap.h')
-rw-r--r--oidmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/oidmap.h b/oidmap.h
index 603ae1adbc..67fb32290f 100644
--- a/oidmap.h
+++ b/oidmap.h
@@ -67,6 +67,10 @@ void *oidmap_put(struct oidmap *map, void *entry);
*/
void *oidmap_remove(struct oidmap *map, const struct object_id *key);
+static inline unsigned int oidmap_get_size(struct oidmap *map)
+{
+ return hashmap_get_size(&map->map);
+}
struct oidmap_iter {
struct hashmap_iter h_iter;