diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-02 13:13:39 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-07 14:43:50 -0700 |
| commit | 3794e9bf982cde754a48b569a639bd2e180e754c (patch) | |
| tree | 8e034bbe0ba3ba151c467082441b5b6421f63f58 /t/unit-tests | |
| parent | eb83e4c64b5a3458569593c2ab0c29365f10a82f (diff) | |
builtin/cat-file: support "blob:none" objects filter
Implement support for the "blob:none" filter in git-cat-file(1), which
causes us to omit all blobs.
Note that this new filter requires us to read the object type via
`oid_object_info_extended()` in `batch_object_write()`. But as we try to
optimize away reading objects from the database the `data->info.typep`
pointer may not be set. We thus have to adapt the logic to conditionally
set the pointer in cases where the filter is given.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests')
0 files changed, 0 insertions, 0 deletions
