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



commit a8f92cd0d7f670079cb2d38848f927784118db4e
Author: Brian C. Lane <bcl redhat com>
Date:   Wed Aug 30 17:29:53 2017 -0700

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

 libgit2-glib/ggit-reflog-entry.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgit2-glib/ggit-reflog-entry.c b/libgit2-glib/ggit-reflog-entry.c
index 3682926..113bab8 100644
--- a/libgit2-glib/ggit-reflog-entry.c
+++ b/libgit2-glib/ggit-reflog-entry.c
@@ -51,7 +51,7 @@ _ggit_reflog_entry_wrap (const git_reflog_entry *reflog_entry)
  * Atomically increments the reference count of @reflog_entry by one.
  * This function is MT-safe and may be called from any thread.
  *
- * Returns: (transfer none): the passed in #GgitReflogEntry.
+ * Returns: (transfer none) (nullable): the passed in #GgitReflogEntry or %NULL.
  */
 GgitReflogEntry *
 ggit_reflog_entry_ref (GgitReflogEntry *reflog_entry)
@@ -87,7 +87,7 @@ ggit_reflog_entry_unref (GgitReflogEntry *reflog_entry)
  *
  * Gets the old #GgitOId.
  *
- * Returns: the old oid.
+ * Returns: (transfer full) (nullable): the old oid or %NULL.
  */
 GgitOId *
 ggit_reflog_entry_get_old_id (GgitReflogEntry *reflog_entry)
@@ -107,7 +107,7 @@ ggit_reflog_entry_get_old_id (GgitReflogEntry *reflog_entry)
  *
  * Gets the new #GgitOId.
  *
- * Returns: the new oid.
+ * Returns: (transfer full) (nullable): the new oid or %NULL.
  */
 GgitOId *
 ggit_reflog_entry_get_new_id (GgitReflogEntry *reflog_entry)
@@ -127,7 +127,7 @@ ggit_reflog_entry_get_new_id (GgitReflogEntry *reflog_entry)
  *
  * Gets the committer as a #GgitSignature.
  *
- * Returns: (transfer none): the committer.
+ * Returns: (transfer none) (nullable): the committer or %NULL.
  */
 GgitSignature *
 ggit_reflog_entry_get_committer (GgitReflogEntry *reflog_entry)
@@ -147,7 +147,7 @@ ggit_reflog_entry_get_committer (GgitReflogEntry *reflog_entry)
  *
  * Gets the message.
  *
- * Returns: the message.
+ * Returns: (transfer none) (nullable): the message or %NULL.
  */
 const gchar *
 ggit_reflog_entry_get_message (GgitReflogEntry *reflog_entry)


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