From 093c63cd46fa2d1da9aa4c8f56e0aa1f9eb786e9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 19 Feb 2021 01:10:26 +0000 Subject: [PATCH] refs: Make ostree_repo_resolve_rev{,_ext}() use (nullable) We have an `allow_noent` boolean that controls this, but were missing the `(nullable)` annotation, so the Rust bindings panic when the ref doesn't exist instead of being `Option`. --- src/libostree/ostree-repo-refs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libostree/ostree-repo-refs.c b/src/libostree/ostree-repo-refs.c index d1d679b2..2fb0f04e 100644 --- a/src/libostree/ostree-repo-refs.c +++ b/src/libostree/ostree-repo-refs.c @@ -449,7 +449,7 @@ _ostree_repo_resolve_rev_internal (OstreeRepo *self, * @self: Repo * @refspec: A refspec * @allow_noent: Do not throw an error if refspec does not exist - * @out_rev: (out) (transfer full): A checksum,or %NULL if @allow_noent is true and it does not exist + * @out_rev: (out) (nullable) (transfer full): A checksum,or %NULL if @allow_noent is true and it does not exist * @error: Error * * Look up the given refspec, returning the checksum it references in @@ -472,7 +472,7 @@ ostree_repo_resolve_rev (OstreeRepo *self, * @refspec: A refspec * @allow_noent: Do not throw an error if refspec does not exist * @flags: Options controlling behavior - * @out_rev: (out) (transfer full): A checksum,or %NULL if @allow_noent is true and it does not exist + * @out_rev: (out) (nullable) (transfer full): A checksum,or %NULL if @allow_noent is true and it does not exist * @error: Error * * Look up the given refspec, returning the checksum it references in