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 /src/notes.c | |
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 'src/notes.c')
-rw-r--r-- | src/notes.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/notes.c b/src/notes.c index 9e6722e75..e533478b1 100644 --- a/src/notes.c +++ b/src/notes.c @@ -417,6 +417,12 @@ int git_note_remove(git_repository *repo, const char *notes_ref, return error; } +int git_note_default_ref(const char **out, git_repository *repo) +{ + assert(repo); + return note_get_default_ref(out, repo); +} + const char * git_note_message(git_note *note) { assert(note); |