mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'ps/cat-file-filter-batch'
"git cat-file --batch" and friends learned to allow "--filter=" to omit certain objects, just like the transport layer does. * ps/cat-file-filter-batch: builtin/cat-file: use bitmaps to efficiently filter by object type builtin/cat-file: deduplicate logic to iterate over all objects pack-bitmap: introduce function to check whether a pack is bitmapped pack-bitmap: add function to iterate over filtered bitmapped objects pack-bitmap: allow passing payloads to `show_reachable_fn()` builtin/cat-file: support "object:type=" objects filter builtin/cat-file: support "blob:limit=" objects filter builtin/cat-file: support "blob:none" objects filter builtin/cat-file: wire up an option to filter objects builtin/cat-file: introduce function to report object status builtin/cat-file: rename variable that tracks usage
This commit is contained in:
@@ -341,7 +341,8 @@ static int mark_object_seen(const struct object_id *oid,
|
||||
int exclude UNUSED,
|
||||
uint32_t name_hash UNUSED,
|
||||
struct packed_git *found_pack UNUSED,
|
||||
off_t found_offset UNUSED)
|
||||
off_t found_offset UNUSED,
|
||||
void *payload UNUSED)
|
||||
{
|
||||
struct object *obj = lookup_object_by_type(the_repository, oid, type);
|
||||
if (!obj)
|
||||
|
||||
Reference in New Issue
Block a user