diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-09-10 11:46:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-10 11:46:21 -0700 |
commit | 9559de3b660c9bb30b5e0858fb30d4a00ca5e12c (patch) | |
tree | 906d56b88ff0d3c9e0db10dd27a30ef98363c452 /object-store.h | |
parent | Merge branch 'ps/fetch-omit-formatting-under-quiet' (diff) | |
parent | builtin/pack-objects.c: remove duplicate hash lookup (diff) | |
download | tgif-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.h | 6 |
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), }; /* |