[libgit2-glib] ggit-diff-delta.c: Fix return annotations
- From: Igor Gnatenko <ignatenko src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] ggit-diff-delta.c: Fix return annotations
- Date: Fri, 1 Sep 2017 06:10:13 +0000 (UTC)
commit faa0bbdb77d869830bf1f4719aa786ee8a6e53a6
Author: Brian C. Lane <bcl redhat com>
Date: Wed Aug 30 16:17:54 2017 -0700
ggit-diff-delta.c: Fix return annotations
Add (nullable) as needed.
libgit2-glib/ggit-diff-delta.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff-delta.c b/libgit2-glib/ggit-diff-delta.c
index 5c9b5e8..402448c 100644
--- a/libgit2-glib/ggit-diff-delta.c
+++ b/libgit2-glib/ggit-diff-delta.c
@@ -63,7 +63,7 @@ _ggit_diff_delta_wrap (const git_diff_delta *delta)
* Atomically increments the reference count of @delta by one.
* This function is MT-safe and may be called from any thread.
*
- * Returns: a #GgitDiffDelta.
+ * Returns: (transfer none) (nullable): a #GgitDiffDelta or %NULL.
**/
GgitDiffDelta *
ggit_diff_delta_ref (GgitDiffDelta *delta)
@@ -101,7 +101,7 @@ ggit_diff_delta_unref (GgitDiffDelta *delta)
*
* Gets the old file for @delta.
*
- * Returns: (transfer none): the delta's old file.
+ * Returns: (transfer none) (nullable): the delta's old file or %NULL.
*/
GgitDiffFile *
ggit_diff_delta_get_old_file (GgitDiffDelta *delta)
@@ -117,7 +117,7 @@ ggit_diff_delta_get_old_file (GgitDiffDelta *delta)
*
* Gets the new file for @delta.
*
- * Returns: (transfer none): the delta's new file.
+ * Returns: (transfer none) (nullable): the delta's new file or %NULL.
*/
GgitDiffFile *
ggit_diff_delta_get_new_file (GgitDiffDelta *delta)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]