[libgit2-glib] ggit-branch.c: Fix return annotations
- From: Igor Gnatenko <ignatenko src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] ggit-branch.c: Fix return annotations
- Date: Fri, 1 Sep 2017 06:08:22 +0000 (UTC)
commit a973aa9bcafe9d9962b354df91474c6180b0f971
Author: Brian C. Lane <bcl redhat com>
Date: Wed Aug 30 11:18:17 2017 -0700
ggit-branch.c: Fix return annotations
Add (nullable) where needed.
libgit2-glib/ggit-branch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgit2-glib/ggit-branch.c b/libgit2-glib/ggit-branch.c
index 85aac89..c77478a 100644
--- a/libgit2-glib/ggit-branch.c
+++ b/libgit2-glib/ggit-branch.c
@@ -85,7 +85,7 @@ ggit_branch_delete (GgitBranch *branch,
*
* Moves/renames an existing branch reference.
*
- * Returns: (transfer full): the new branch.
+ * Returns: (transfer full) (nullable): the new branch or %NULL.
**/
GgitBranch *
ggit_branch_move (GgitBranch *branch,
@@ -124,7 +124,7 @@ ggit_branch_move (GgitBranch *branch,
*
* Gets the name of the given local or remote branch.
*
- * Returns: the name of the given local or remote branch.
+ * Returns: (transfer none) (nullable): the name of the given local or remote branch or %NULL.
*/
const gchar *
ggit_branch_get_name (GgitBranch *branch,
@@ -156,7 +156,7 @@ ggit_branch_get_name (GgitBranch *branch,
* Gets the reference supporting the remote tracking branch,
* given a local branch reference.
*
- * Returns: (transfer full) (allow-none): the reference supporting the remote tracking branch.
+ * Returns: (transfer full) (nullable): the reference supporting the remote tracking branch or %NULL.
*/
GgitRef *
ggit_branch_get_upstream (GgitBranch *branch,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]