summaryrefslogtreecommitdiff
path: root/include/git2/notes.h
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-05 14:14:58 -0700
committerVicent Martí <tanoku@gmail.com>2012-05-05 14:14:58 -0700
commitd3a60dc24479a6077c21ecc3ae3e41b6d5557ff7 (patch)
tree62f370591854a5437889b81cfd0193318df1a401 /include/git2/notes.h
parent674a198599aa3a77b7edff3f864e3e8779059e36 (diff)
parent630c5a4a54bca28687f1c42117f830720f822fa6 (diff)
downloadlibgit2-d3a60dc24479a6077c21ecc3ae3e41b6d5557ff7.tar.gz
Merge pull request #663 from schu/notes-honor-config
Honor core.notesRef config option
Diffstat (limited to 'include/git2/notes.h')
-rw-r--r--include/git2/notes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/notes.h b/include/git2/notes.h
index 1b5944f9d..ecb37f3ab 100644
--- a/include/git2/notes.h
+++ b/include/git2/notes.h
@@ -92,6 +92,16 @@ GIT_EXTERN(int) git_note_remove(git_repository *repo, const char *notes_ref,
*/
GIT_EXTERN(void) git_note_free(git_note *note);
+/**
+ * Get the default notes reference for a repository
+ *
+ * @param out Pointer to the default notes reference
+ * @param repo The Git repository
+ *
+ * @return GIT_SUCCESS or an error code
+ */
+GIT_EXTERN(int) git_note_default_ref(const char **out, git_repository *repo);
+
/** @} */
GIT_END_DECL
#endif