[libgit2-glib] ggit-tag.c: Fix return annotations
- From: Igor Gnatenko <ignatenko src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] ggit-tag.c: Fix return annotations
- Date: Fri, 1 Sep 2017 06:09:12 +0000 (UTC)
commit fc203f3fb4a3ae97d767e5c50fafd3352683b016
Author: Brian C. Lane <bcl redhat com>
Date: Wed Aug 30 12:09:54 2017 -0700
ggit-tag.c: Fix return annotations
Add (nullable) where needed.
libgit2-glib/ggit-tag.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgit2-glib/ggit-tag.c b/libgit2-glib/ggit-tag.c
index a226386..9a32a3d 100644
--- a/libgit2-glib/ggit-tag.c
+++ b/libgit2-glib/ggit-tag.c
@@ -73,7 +73,7 @@ _ggit_tag_wrap (git_tag *tag,
* This method performs a repository lookup for the
* given object and returns it.
*
- * Returns: (transfer full): the target #GgitObject of the tag.
+ * Returns: (transfer full) (nullable): the target #GgitObject of the tag or %NULL.
*/
GgitObject *
ggit_tag_get_target (GgitTag *tag,
@@ -108,7 +108,7 @@ ggit_tag_get_target (GgitTag *tag,
*
* Gets the target #GgitOId of @tag.
*
- * Returns: (transfer full): the target #GgitOId of the tag.
+ * Returns: (transfer full) (nullable): the target #GgitOId of the tag or %NULL.
*/
GgitOId *
ggit_tag_get_target_id (GgitTag *tag)
@@ -130,7 +130,7 @@ ggit_tag_get_target_id (GgitTag *tag)
*
* Gets the name of @tag.
*
- * Returns: the name of the tag.
+ * Returns: (transfer none) (nullable): the name of the tag or %NULL.
*/
const gchar *
ggit_tag_get_name (GgitTag *tag)
@@ -151,7 +151,7 @@ ggit_tag_get_name (GgitTag *tag)
* Get the tagger (author) of @tag. The returned value must be free with
* g_object_unref().
*
- * Returns: (transfer full): the tagger (author) of the tag.
+ * Returns: (transfer full) (nullable): the tagger (author) of the tag or %NULL.
*/
GgitSignature *
ggit_tag_get_tagger (GgitTag *tag)
@@ -178,7 +178,7 @@ ggit_tag_get_tagger (GgitTag *tag)
*
* Gets the message of @tag.
*
- * Returns: the message of the tag.
+ * Returns: (transfer none) (nullable): the message of the tag or %NULL.
*/
const gchar *
ggit_tag_get_message (GgitTag *tag)
@@ -215,7 +215,7 @@ ggit_tag_get_target_type (GgitTag *tag)
*
* Recursively peel a tag until a non tag object is found.
*
- * Returns: (transfer full): a #GgitObject.
+ * Returns: (transfer full) (nullable): a #GgitObject or %NULL.
*
**/
GgitObject *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]