[libgit2-glib] ggit-diff.c: Fix return annotations
- From: Igor Gnatenko <ignatenko src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] ggit-diff.c: Fix return annotations
- Date: Fri, 1 Sep 2017 06:08:47 +0000 (UTC)
commit e59d13a8eee40b0034c203a467faabeb80a60cb0
Author: Brian C. Lane <bcl redhat com>
Date: Wed Aug 30 11:34:31 2017 -0700
ggit-diff.c: Fix return annotations
Add (nullable) and (transfer full) where needed.
libgit2-glib/ggit-diff.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff.c b/libgit2-glib/ggit-diff.c
index 8cbcd4d..640d946 100644
--- a/libgit2-glib/ggit-diff.c
+++ b/libgit2-glib/ggit-diff.c
@@ -380,7 +380,8 @@ _ggit_diff_wrap (GgitRepository *repository,
* If @diff_options is %NULL then the defaults specified in
* ggit_diff_options_new() are used.
*
- * Returns: a newly allocated #GgitDiff if there was no error, %NULL otherwise.
+ * Returns: (transfer full) (nullable): a newly allocated #GgitDiff if
+ * there was no error, %NULL otherwise.
*/
GgitDiff *
ggit_diff_new_tree_to_tree (GgitRepository *repository,
@@ -427,7 +428,8 @@ ggit_diff_new_tree_to_tree (GgitRepository *repository,
* If @diff_options is %NULL then the defaults specified in
* ggit_diff_options_new() are used.
*
- * Returns: a newly allocated #GgitDiff if there was no error, %NULL otherwise.
+ * Returns: (transfer full) (nullable): a newly allocated #GgitDiff if
+ * there was no error, %NULL otherwise.
*/
GgitDiff *
ggit_diff_new_tree_to_index (GgitRepository *repository,
@@ -472,7 +474,8 @@ ggit_diff_new_tree_to_index (GgitRepository *repository,
* If @diff_options is %NULL then the defaults specified in
* ggit_diff_options_new() are used.
*
- * Returns: a newly allocated #GgitDiff if there was no error, %NULL otherwise.
+ * Returns: (transfer full) (nullable): a newly allocated #GgitDiff if
+ * there was no error, %NULL otherwise.
*/
GgitDiff *
ggit_diff_new_index_to_workdir (GgitRepository *repository,
@@ -513,7 +516,8 @@ ggit_diff_new_index_to_workdir (GgitRepository *repository,
* If @diff_options is %NULL then the defaults specified in
* ggit_diff_options_new() are used.
*
- * Returns: a newly allocated #GgitDiff if there was no error, %NULL otherwise.
+ * Returns: (transfer full) (nullable): a newly allocated #GgitDiff if
+ * there was no error, %NULL otherwise.
*/
GgitDiff *
ggit_diff_new_tree_to_workdir (GgitRepository *repository,
@@ -703,7 +707,7 @@ ggit_diff_print (GgitDiff *diff,
*
* Create an e-mail ready patch from a diff.
*
- * Returns: (transfer full): the patch or %NULL if an error occurred.
+ * Returns: (transfer full) (nullable): the patch or %NULL if an error occurred.
*
**/
gchar *
@@ -760,7 +764,7 @@ ggit_diff_get_num_deltas (GgitDiff *diff)
*
* Get the delta at the specified index.
*
- * Returns: (transfer full): a #GgitDiffDelta.
+ * Returns: (transfer full) (nullable): a #GgitDiffDelta or %NULL.
*
**/
GgitDiffDelta *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]