summaryrefslogtreecommitdiff
path: root/include/git2/refs.h
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-02-02 10:44:13 -0800
committerVicent Marti <vicent@github.com>2014-02-02 10:44:13 -0800
commit0b4d86af902916b5f98bdf92bc853e3e45edbf84 (patch)
treefef9c3030ccb41f3133c6eef889daf6a81133bc1 /include/git2/refs.h
parent40e10630cfbdddd878a6347c1751092bab7f7a28 (diff)
parent50ad7cc2089798f65f8fcc49d94ab515f64dd160 (diff)
downloadlibgit2-0b4d86af902916b5f98bdf92bc853e3e45edbf84.tar.gz
Merge pull request #2098 from arthurschreiber/arthur/add-git_reference_is_note
Add `git_reference_is_note`.
Diffstat (limited to 'include/git2/refs.h')
-rw-r--r--include/git2/refs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h
index 976b7496b..f9aaea827 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -510,6 +510,16 @@ GIT_EXTERN(int) git_reference_is_remote(git_reference *ref);
*/
GIT_EXTERN(int) git_reference_is_tag(git_reference *ref);
+/**
+ * Check if a reference is a note
+ *
+ * @param ref A git reference
+ *
+ * @return 1 when the reference lives in the refs/notes
+ * namespace; 0 otherwise.
+ */
+GIT_EXTERN(int) git_reference_is_note(git_reference *ref);
+
typedef enum {
GIT_REF_FORMAT_NORMAL = 0u,