[libgit2-glib] Added ggit_ref_is_note
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Added ggit_ref_is_note
- Date: Wed, 25 Jun 2014 08:43:44 +0000 (UTC)
commit 320dc25e6674b0170a0365c2203cda93c773c141
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Wed Jun 25 10:43:15 2014 +0200
Added ggit_ref_is_note
libgit2-glib/ggit-ref.c | 17 +++++++++++++++++
libgit2-glib/ggit-ref.h | 1 +
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libgit2-glib/ggit-ref.c b/libgit2-glib/ggit-ref.c
index 95dfc71..0b20eb4 100644
--- a/libgit2-glib/ggit-ref.c
+++ b/libgit2-glib/ggit-ref.c
@@ -600,4 +600,21 @@ ggit_ref_is_branch (GgitRef *ref)
return git_reference_is_branch (_ggit_native_get (ref));
}
+/**
+ * ggit_ref_is_note:
+ * @ref: a #GgitRef.
+ *
+ * Check whether the reference is a note.
+ *
+ * Returns: %TRUE if the reference is a note, %FALSE otherwise.
+ *
+ **/
+gboolean
+ggit_ref_is_note (GgitRef *ref)
+{
+ g_return_val_if_fail (ref != NULL, FALSE);
+
+ return git_reference_is_note (_ggit_native_get (ref));
+}
+
/* ex:set ts=8 noet: */
diff --git a/libgit2-glib/ggit-ref.h b/libgit2-glib/ggit-ref.h
index 386f5a3..5696987 100644
--- a/libgit2-glib/ggit-ref.h
+++ b/libgit2-glib/ggit-ref.h
@@ -115,6 +115,7 @@ void ggit_ref_delete_log (GgitRef *ref,
gboolean ggit_ref_is_tag (GgitRef *ref);
gboolean ggit_ref_is_remote (GgitRef *ref);
gboolean ggit_ref_is_branch (GgitRef *ref);
+gboolean ggit_ref_is_note (GgitRef *ref);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]