summaryrefslogtreecommitdiff
path: root/object-store.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-09-10 11:46:21 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-09-10 11:46:21 -0700
commit9559de3b660c9bb30b5e0858fb30d4a00ca5e12c (patch)
tree906d56b88ff0d3c9e0db10dd27a30ef98363c452 /object-store.h
parentMerge branch 'ps/fetch-omit-formatting-under-quiet' (diff)
parentbuiltin/pack-objects.c: remove duplicate hash lookup (diff)
downloadtgif-9559de3b660c9bb30b5e0858fb30d4a00ca5e12c.tar.xz
Merge branch 'tb/add-objects-in-unpacked-packs-simplify'
Code simplification with reduced memory usage. * tb/add-objects-in-unpacked-packs-simplify: builtin/pack-objects.c: remove duplicate hash lookup builtin/pack-objects.c: simplify add_objects_in_unpacked_packs() object-store.h: teach for_each_packed_object to ignore kept packs
Diffstat (limited to 'object-store.h')
-rw-r--r--object-store.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/object-store.h b/object-store.h
index d24915ced1..b4dc6668aa 100644
--- a/object-store.h
+++ b/object-store.h
@@ -455,6 +455,12 @@ enum for_each_object_flags {
* Visit objects within a pack in packfile order rather than .idx order
*/
FOR_EACH_OBJECT_PACK_ORDER = (1<<2),
+
+ /* Only iterate over packs that are not marked as kept in-core. */
+ FOR_EACH_OBJECT_SKIP_IN_CORE_KEPT_PACKS = (1<<3),
+
+ /* Only iterate over packs that do not have .keep files. */
+ FOR_EACH_OBJECT_SKIP_ON_DISK_KEPT_PACKS = (1<<4),
};
/*