diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-05-01 13:39:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-01 13:39:52 -0700 |
commit | 6a1c17d05b0e67fa5f9661f492f407b984496b27 (patch) | |
tree | 2abe4b8ae7cb8eb78e93ca07cd1e9426a876297d /oidset.h | |
parent | 2b4ff3d3dc64d4abcded7caa9bcdf063aea5ec3f (diff) | |
parent | dbd5e0a1861c5bb1446e5518173aa1760c6617b0 (diff) | |
download | git-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. */ |