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



commit 2c672958b091359e12ac081e4c12f1e60ab66921
Author: Brian C. Lane <bcl redhat com>
Date:   Wed Aug 30 16:19:48 2017 -0700

    ggit-diff-file.c: Fix return annotations
    
    Add (nullable) and (transfer none) as needed.

 libgit2-glib/ggit-diff-file.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff-file.c b/libgit2-glib/ggit-diff-file.c
index d3a84b2..6c4185b 100644
--- a/libgit2-glib/ggit-diff-file.c
+++ b/libgit2-glib/ggit-diff-file.c
@@ -62,7 +62,7 @@ _ggit_diff_file_wrap (const git_diff_file *file)
  * Atomically increments the reference count of @file by one.
  * This function is MT-safe and may be called from any thread.
  *
- * Returns: a #GgitDiffFile.
+ * Returns: (transfer none) (nullable): a #GgitDiffFile or %NULL.
  **/
 GgitDiffFile *
 ggit_diff_file_ref (GgitDiffFile *file)
@@ -100,7 +100,7 @@ ggit_diff_file_unref (GgitDiffFile *file)
  *
  * Gets the #GgitOId for @file.
  *
- * Returns: (transfer none): the file's #GgitOId.
+ * Returns: (transfer none) (nullable): the file's #GgitOId or %NULL.
  */
 GgitOId *
 ggit_diff_file_get_oid (GgitDiffFile *file)
@@ -116,7 +116,7 @@ ggit_diff_file_get_oid (GgitDiffFile *file)
  *
  * Gets the path of @file or %NULL if it is unknown.
  *
- * Returns: (allow-none): the file's path, or %NULL.
+ * Returns: (transfer none) (nullable): the file's path, or %NULL.
  */
 const gchar *
 ggit_diff_file_get_path (GgitDiffFile *file)


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