[libgit2-glib] ggit-diff-binary.c: Fix return annotations



commit 2146757beca71ba5eaec476ed5a55d9a6cde05c9
Author: Brian C. Lane <bcl redhat com>
Date:   Wed Aug 30 16:07:53 2017 -0700

    ggit-diff-binary.c: Fix return annotations
    
    Add (nullable) as needed.

 libgit2-glib/ggit-diff-binary.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff-binary.c b/libgit2-glib/ggit-diff-binary.c
index 7eec56e..2cd4962 100644
--- a/libgit2-glib/ggit-diff-binary.c
+++ b/libgit2-glib/ggit-diff-binary.c
@@ -55,7 +55,7 @@ _ggit_diff_binary_wrap (const git_diff_binary *binary)
  * Atomically increments the reference count of @binary by one.
  * This function is MT-safe and may be called from any thread.
  *
- * Returns: a #GgitDiffBinary.
+ * Returns: (transfer none) (nullable): a #GgitDiffBinary or %NULL.
  **/
 GgitDiffBinary *
 ggit_diff_binary_ref (GgitDiffBinary *binary)
@@ -93,7 +93,7 @@ ggit_diff_binary_unref (GgitDiffBinary *binary)
  *
  * Gets the #GgitDiffBinaryFile old file for @binary.
  *
- * Returns: (transfer none): the contents of the old file.
+ * Returns: (transfer none) (nullable): the contents of the old file or %NULL.
  */
 GgitDiffBinaryFile *
 ggit_diff_binary_get_old_file (GgitDiffBinary *binary)
@@ -109,7 +109,7 @@ ggit_diff_binary_get_old_file (GgitDiffBinary *binary)
  *
  * Gets the #GgitDiffBinaryFile new file for @binary.
  *
- * Returns: (transfer none): the contents of the new file.
+ * Returns: (transfer none) (nullable): the contents of the new file or %NULL.
  */
 GgitDiffBinaryFile *
 ggit_diff_binary_get_new_file (GgitDiffBinary *binary)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]