diff options
author | Michael Schubert <schu@schu.io> | 2012-04-30 14:29:34 +0200 |
---|---|---|
committer | Michael Schubert <schu@schu.io> | 2012-05-03 22:31:29 +0200 |
commit | 630c5a4a54bca28687f1c42117f830720f822fa6 (patch) | |
tree | de9a9677d332b9cb9da8a5eb35ecd0d7a658adbb /include/git2/notes.h | |
parent | caea5e543379c053de5eec45b8f5a0e83c07e3fe (diff) | |
download | libgit2-630c5a4a54bca28687f1c42117f830720f822fa6.tar.gz |
notes: add git_note_default_ref()
Add git_note_default_ref to allow easy retrieval of the currently set
default notes reference.
Diffstat (limited to 'include/git2/notes.h')
-rw-r--r-- | include/git2/notes.h | 10 |
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 |