diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-20 11:33:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-20 11:33:52 -0700 |
commit | 0c54cdaf6580f121919048633e85772d60b8fb17 (patch) | |
tree | e2c0985b9c692678a0f9972047ae837b86d59879 /packfile.h | |
parent | 42a6274b62397ab0047a21729c99f8fb06193f9b (diff) | |
parent | 0889aae1cd18c1804ba01c1a4229e516dfb9fe9b (diff) | |
download | git-0c54cdaf6580f121919048633e85772d60b8fb17.tar.gz |
Merge branch 'jk/for-each-object-iteration'
The API to iterate over all objects learned to optionally list
objects in the order they appear in packfiles, which helps locality
of access if the caller accesses these objects while as objects are
enumerated.
* jk/for-each-object-iteration:
for_each_*_object: move declarations to object-store.h
cat-file: use a single strbuf for all output
cat-file: split batch "buf" into two variables
cat-file: use oidset check-and-insert
cat-file: support "unordered" output for --batch-all-objects
cat-file: rename batch_{loose,packed}_object callbacks
t1006: test cat-file --batch-all-objects with duplicates
for_each_packed_object: support iterating in pack-order
for_each_*_object: give more comprehensive docstrings
for_each_*_object: take flag arguments as enum
for_each_*_object: store flag definitions in a single location
Diffstat (limited to 'packfile.h')
-rw-r--r-- | packfile.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/packfile.h b/packfile.h index fa36c473ad..630f35cf31 100644 --- a/packfile.h +++ b/packfile.h @@ -149,23 +149,6 @@ extern int has_object_pack(const struct object_id *oid); extern int has_pack_index(const unsigned char *sha1); /* - * Only iterate over packs obtained from the promisor remote. - */ -#define FOR_EACH_OBJECT_PROMISOR_ONLY 2 - -/* - * Iterate over packed objects in both the local - * repository and any alternates repositories (unless the - * FOR_EACH_OBJECT_LOCAL_ONLY flag, defined in cache.h, is set). - */ -typedef int each_packed_object_fn(const struct object_id *oid, - struct packed_git *pack, - uint32_t pos, - void *data); -extern int for_each_object_in_pack(struct packed_git *p, each_packed_object_fn, void *data); -extern int for_each_packed_object(each_packed_object_fn, void *, unsigned flags); - -/* * Return 1 if an object in a promisor packfile is or refers to the given * object, 0 otherwise. */ |