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



commit fb1d318acf2d16eae76d01b39387e41cc422472a
Author: Brian C. Lane <bcl redhat com>
Date:   Wed Aug 30 12:13:56 2017 -0700

    ggit-tree-entry.c: Fix return annotations
    
    Add (nullable) where needed.

 libgit2-glib/ggit-tree-entry.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgit2-glib/ggit-tree-entry.c b/libgit2-glib/ggit-tree-entry.c
index 78c0827..7f3fad2 100644
--- a/libgit2-glib/ggit-tree-entry.c
+++ b/libgit2-glib/ggit-tree-entry.c
@@ -56,7 +56,7 @@ _ggit_tree_entry_wrap (git_tree_entry *entry,
  * Atomically increments the reference count of @entry by one.
  * This function is MT-safe and may be called from any thread.
  *
- * Returns: (transfer none): a #GgitTreeEntry.
+ * Returns: (transfer none) (nullable): a #GgitTreeEntry or %NULL.
  **/
 GgitTreeEntry *
 ggit_tree_entry_ref (GgitTreeEntry *entry)
@@ -113,7 +113,7 @@ ggit_tree_entry_get_file_mode (GgitTreeEntry *entry)
  *
  * Get the #GgitOId of the entry.
  *
- * Returns: (transfer full): a #GgitOId.
+ * Returns: (transfer full) (nullable): a #GgitOId or %NULL.
  *
  **/
 GgitOId *
@@ -130,7 +130,7 @@ ggit_tree_entry_get_id (GgitTreeEntry *entry)
  *
  * Get the name of the tree entry.
  *
- * Returns: the name of the tree entry.
+ * Returns: (transfer none) (nullable): the name of the tree entry or %NULL.
  *
  **/
 const gchar *


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