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



commit 9bf607b9a79763e0173c96bc749f1e92e8088486
Author: Brian C. Lane <bcl redhat com>
Date:   Wed Aug 30 17:27:08 2017 -0700

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

 libgit2-glib/ggit-reflog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-reflog.c b/libgit2-glib/ggit-reflog.c
index 061875f..f601329 100644
--- a/libgit2-glib/ggit-reflog.c
+++ b/libgit2-glib/ggit-reflog.c
@@ -56,7 +56,7 @@ _ggit_reflog_wrap (GgitRef    *ref,
  * Atomically increments the reference count of @reflog by one.
  * This function is MT-safe and may be called from any thread.
  *
- * Returns: (transfer none): the passed in #GgitReflog.
+ * Returns: (transfer none) (nullable): the passed in #GgitReflog or %NULL.
  */
 GgitReflog *
 ggit_reflog_ref (GgitReflog *reflog)
@@ -142,7 +142,7 @@ ggit_reflog_get_entry_count (GgitReflog *reflog)
  *
  * Gets the #GgitReflogEntry at @idx in @reflog, or %NULL if not found.
  *
- * Returns: the reflog entry at the index, or %NULL if not found.
+ * Returns: (transfer full) (nullable): the reflog entry at the index, or %NULL if not found.
  */
 GgitReflogEntry *
 ggit_reflog_get_entry_from_index (GgitReflog *reflog,


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