aboutsummaryrefslogtreecommitdiff
path: root/list-objects-filter.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-09-23 11:53:40 -0700
committerJunio C Hamano <gitster@pobox.com>2025-09-23 11:53:40 -0700
commit7c15d990cc05837ddcbcb41dc8f64ea2a7405226 (patch)
treebc6c6b0573de3352369005f9f0601386f23ff27d /list-objects-filter.c
parent2e8d7569eae06a7e5052d08c2697b0f1281be9da (diff)
parenta66fc22bf9b7f379fc68e23c54d42ac9b7eaa845 (diff)
downloadgit-7c15d990cc05837ddcbcb41dc8f64ea2a7405226.tar.xz
Merge branch 'rs/get-oid-with-flags-cleanup'
Code clean-up. * rs/get-oid-with-flags-cleanup: use repo_get_oid_with_flags()
Diffstat (limited to 'list-objects-filter.c')
-rw-r--r--list-objects-filter.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/list-objects-filter.c b/list-objects-filter.c
index 7ecd4d9ef5..acd65ebb73 100644
--- a/list-objects-filter.c
+++ b/list-objects-filter.c
@@ -524,12 +524,11 @@ static void filter_sparse_oid__init(
struct filter *filter)
{
struct filter_sparse_data *d = xcalloc(1, sizeof(*d));
- struct object_context oc;
struct object_id sparse_oid;
- if (get_oid_with_context(the_repository,
- filter_options->sparse_oid_name,
- GET_OID_BLOB, &sparse_oid, &oc))
+ if (repo_get_oid_with_flags(the_repository,
+ filter_options->sparse_oid_name,
+ &sparse_oid, GET_OID_BLOB))
die(_("unable to access sparse blob in '%s'"),
filter_options->sparse_oid_name);
if (add_patterns_from_blob_to_list(&sparse_oid, "", 0, &d->pl) < 0)
@@ -544,8 +543,6 @@ static void filter_sparse_oid__init(
filter->filter_data = d;
filter->filter_object_fn = filter_sparse;
filter->free_fn = filter_sparse_free;
-
- object_context_release(&oc);
}
/*