[libgit2-glib] ggit-tree.c: Fix return annotations
- From: Igor Gnatenko <ignatenko src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] ggit-tree.c: Fix return annotations
- Date: Fri, 1 Sep 2017 06:09:17 +0000 (UTC)
commit a1b067f5473fc101c8d0be8b9eb00b8ffb8017c5
Author: Brian C. Lane <bcl redhat com>
Date: Wed Aug 30 12:11:58 2017 -0700
ggit-tree.c: Fix return annotations
Add (nullable) where needed.
libgit2-glib/ggit-tree.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgit2-glib/ggit-tree.c b/libgit2-glib/ggit-tree.c
index cd3a41a..29e21c5 100644
--- a/libgit2-glib/ggit-tree.c
+++ b/libgit2-glib/ggit-tree.c
@@ -67,7 +67,7 @@ _ggit_tree_wrap (git_tree *tree,
*
* Get the #GgitOId of the tree.
*
- * Returns: (transfer full): a #GgitOId.
+ * Returns: (transfer full) (nullable): a #GgitOId or %NULL.
*
**/
GgitOId *
@@ -92,7 +92,7 @@ ggit_tree_get_id (GgitTree *tree)
*
* Get a tree entry by index.
*
- * Returns: (transfer full): a #GgitTreeEntry.
+ * Returns: (transfer full) (nullable): a #GgitTreeEntry or %NULL.
*
**/
GgitTreeEntry *
@@ -139,7 +139,7 @@ ggit_tree_size (GgitTree *tree)
*
* Get a tree entry by name.
*
- * Returns: (transfer full): a #GgitTreeEntry.
+ * Returns: (transfer full) (nullable): a #GgitTreeEntry or %NULL.
*
**/
GgitTreeEntry *
@@ -174,7 +174,7 @@ ggit_tree_get_by_name (GgitTree *tree,
* Retrieves a tree entry contained in a tree or in any of its subtrees,
* given its relative path.
*
- * Returns: (transfer full): a #GgitTreeEntry.
+ * Returns: (transfer full) (nullable): a #GgitTreeEntry or %NULL.
*
**/
GgitTreeEntry *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]