diff options
author | Colin Walters <walters@verbum.org> | 2021-02-19 01:10:26 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2021-02-19 01:11:43 +0000 |
commit | 093c63cd46fa2d1da9aa4c8f56e0aa1f9eb786e9 (patch) | |
tree | 8bafe5f6513af56177ebdfd68702a24c85dc40a5 /src/libostree | |
parent | 172a845c2b6b3f4b50125d459121ad482e532a65 (diff) | |
download | ostree-093c63cd46fa2d1da9aa4c8f56e0aa1f9eb786e9.tar.gz |
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<GString>`.
Diffstat (limited to 'src/libostree')
-rw-r--r-- | src/libostree/ostree-repo-refs.c | 4 |
1 files 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 |