From: Colin Walters Date: Fri, 19 Feb 2021 01:10:26 +0000 (+0000) Subject: refs: Make ostree_repo_resolve_rev{,_ext}() use (nullable) X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~5^2~15^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=093c63cd46fa2d1da9aa4c8f56e0aa1f9eb786e9;p=ostree.git 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`. --- 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