]> git.ipfire.org Git - thirdparty/git.git/commit - packfile.c
object-store.h: teach for_each_packed_object to ignore kept packs
authorTaylor Blau <me@ttaylorr.com>
Mon, 30 Aug 2021 02:48:52 +0000 (22:48 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Aug 2021 06:23:39 +0000 (23:23 -0700)
commita241878ac7b67b1894c14d3c3e33ed13f11ae253
tree84c18dcc4b130740020122fb075e71890e928279
parentc4203212e360b25a1c69467b5a8437d45a373cac
object-store.h: teach for_each_packed_object to ignore kept packs

The next patch will reimplement a function that wants to iterate over
packed objects while ignoring packs which are marked as kept (either
in-core or on-disk).

Teach for_each_packed_object() to ignore all objects from those packs by
adding a new flag for each of the "kept" states that a pack can be in.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-store.h
packfile.c