diff options
author | Johan Herland <johan@herland.net> | 2010-02-13 22:28:15 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-13 19:36:12 -0800 |
commit | 9b391f218a5b732a5a8abae87d3165e97fe2f6f6 (patch) | |
tree | ddaa9801e5323b0b0936bd7c75be6804b77dc948 /notes.h | |
parent | 1ec666b092d1df5691cd4d38f20aaeadd5049aa2 (diff) | |
download | git-9b391f218a5b732a5a8abae87d3165e97fe2f6f6.tar.gz |
Notes API: get_note(): Return the note annotating the given object
Created by a simple cleanup and rename of lookup_notes().
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.h')
-rw-r--r-- | notes.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -28,6 +28,13 @@ void add_note(const unsigned char *object_sha1, /* Remove the given note object from the internal notes tree structure */ void remove_note(const unsigned char *object_sha1); +/* + * Get the note object SHA1 containing the note data for the given object + * + * Return NULL if the given object has no notes. + */ +const unsigned char *get_note(const unsigned char *object_sha1); + /* Free (and de-initialize) the internal notes tree structure */ void free_notes(void); |