[libgit2-glib] ggit-annotated-commit.c: Fix return annotations



commit ddac915c5b6bbc19ed60d948807218351f2e62b9
Author: Brian C. Lane <bcl redhat com>
Date:   Wed Aug 30 15:18:55 2017 -0700

    ggit-annotated-commit.c: Fix return annotations
    
    Add (nullable) as needed.

 libgit2-glib/ggit-annotated-commit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-annotated-commit.c b/libgit2-glib/ggit-annotated-commit.c
index 499b742..14ee4ea 100644
--- a/libgit2-glib/ggit-annotated-commit.c
+++ b/libgit2-glib/ggit-annotated-commit.c
@@ -58,7 +58,7 @@ _ggit_annotated_commit_get_annotated_commit (GgitAnnotatedCommit *annotated_comm
  * Atomically increments the reference count of @annotated_commit by one.
  * This function is MT-safe and may be called from any thread.
  *
- * Returns: (transfer none): a newly allocated #GgitAnnotatedCommit.
+ * Returns: (transfer none) (nullable): a newly allocated #GgitAnnotatedCommit or %NULL.
  */
 GgitAnnotatedCommit *
 ggit_annotated_commit_ref (GgitAnnotatedCommit *annotated_commit)
@@ -95,7 +95,7 @@ ggit_annotated_commit_unref (GgitAnnotatedCommit *annotated_commit)
  *
  * Gets the commit ID that the given @annotated_commit refs to.
  *
- * Returns: (transfer full): the commit ID that the given @annotated_commit refs to.
+ * Returns: (transfer full) (nullable): the commit ID that the given @annotated_commit refs to or %NULL.
  */
 GgitOId *
 ggit_annotated_commit_get_id (GgitAnnotatedCommit *annotated_commit)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]