summaryrefslogtreecommitdiff
path: root/oidset.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-05-01 13:39:52 -0700
committerJunio C Hamano <gitster@pobox.com>2020-05-01 13:39:52 -0700
commit6a1c17d05b0e67fa5f9661f492f407b984496b27 (patch)
tree2abe4b8ae7cb8eb78e93ca07cd1e9426a876297d /oidset.h
parent2b4ff3d3dc64d4abcded7caa9bcdf063aea5ec3f (diff)
parentdbd5e0a1861c5bb1446e5518173aa1760c6617b0 (diff)
downloadgit-6a1c17d05b0e67fa5f9661f492f407b984496b27.tar.gz
Merge branch 'tb/commit-graph-split-strategy'
"git commit-graph write" learned different ways to write out split files. * tb/commit-graph-split-strategy: Revert "commit-graph.c: introduce '--[no-]check-oids'" commit-graph.c: introduce '--[no-]check-oids' commit-graph.h: replace 'commit_hex' with 'commits' oidset: introduce 'oidset_size' builtin/commit-graph.c: introduce split strategy 'replace' builtin/commit-graph.c: introduce split strategy 'no-merge' builtin/commit-graph.c: support for '--split[=<strategy>]' t/helper/test-read-graph.c: support commit-graph chains
Diffstat (limited to 'oidset.h')
-rw-r--r--oidset.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/oidset.h b/oidset.h
index 3a2d9d1115..209ae7a173 100644
--- a/oidset.h
+++ b/oidset.h
@@ -55,6 +55,11 @@ int oidset_insert(struct oidset *set, const struct object_id *oid);
int oidset_remove(struct oidset *set, const struct object_id *oid);
/**
+ * Returns the number of oids in the set.
+ */
+int oidset_size(struct oidset *set);
+
+/**
* Remove all entries from the oidset, freeing any resources associated with
* it.
*/