]> git.99rst.org Git - git.git/commit
builtin/cat-file: filter objects via object database
authorPatrick Steinhardt <redacted>
Wed, 15 Jul 2026 06:22:39 +0000 (08:22 +0200)
committerJunio C Hamano <redacted>
Wed, 15 Jul 2026 14:19:16 +0000 (07:19 -0700)
commitbfa86e6a3a80b910f0875350d747f7a831694b18
treeaed5ff3f206c26501d282c037ba90a44bdd3493e
parent204daf5e5c6f931352ddde16236e9705075d15bf
builtin/cat-file: filter objects via object database

When batching all objects, git-cat-file(1) reaches into the internals of
the object database and manually manages bitmaps to apply object
filters. This creates coupling between the command and the internals of
the respective backend.

Refactor git-cat-file(1) to use the new object filter option when
batching all objects. This significantly simplifies the logic and
ensures that we don't have to reach into internals of the "files" source
anymore.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/cat-file.c
git clone https://git.99rst.org/PROJECT