libgit2_d.notes

Undocumented in source.

Members

Aliases

git_note_foreach_cb
alias git_note_foreach_cb = int function(const(libgit2_d.oid.git_oid)* blob_id, const(libgit2_d.oid.git_oid)* annotated_object_id, void* payload)

Callback for git_note_foreach.

git_note_iterator
alias git_note_iterator = git_iterator
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

git_note_author
const(libgit2_d.types.git_signature)* git_note_author(const(libgit2_d.types.git_note)* note)

Get the note author

git_note_commit_create
int git_note_commit_create(libgit2_d.oid.git_oid* notes_commit_out, libgit2_d.oid.git_oid* notes_blob_out, libgit2_d.types.git_repository* repo, libgit2_d.types.git_commit* parent, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(libgit2_d.oid.git_oid)* oid, const(char)* note, int allow_note_overwrite)

Add a note for an object from a commit

git_note_commit_iterator_new
int git_note_commit_iterator_new(.git_note_iterator** out_, libgit2_d.types.git_commit* notes_commit)

Creates a new iterator for notes from a commit

git_note_commit_read
int git_note_commit_read(libgit2_d.types.git_note** out_, libgit2_d.types.git_repository* repo, libgit2_d.types.git_commit* notes_commit, const(libgit2_d.oid.git_oid)* oid)

Read the note for an object from a note commit

git_note_commit_remove
int git_note_commit_remove(libgit2_d.oid.git_oid* notes_commit_out, libgit2_d.types.git_repository* repo, libgit2_d.types.git_commit* notes_commit, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(libgit2_d.oid.git_oid)* oid)

Remove the note for an object

git_note_committer
const(libgit2_d.types.git_signature)* git_note_committer(const(libgit2_d.types.git_note)* note)

Get the note committer

git_note_create
int git_note_create(libgit2_d.oid.git_oid* out_, libgit2_d.types.git_repository* repo, const(char)* notes_ref, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(libgit2_d.oid.git_oid)* oid, const(char)* note, int force)

Add a note for an object

git_note_default_ref
int git_note_default_ref(libgit2_d.buffer.git_buf* out_, libgit2_d.types.git_repository* repo)

Get the default notes reference for a repository

git_note_foreach
int git_note_foreach(libgit2_d.types.git_repository* repo, const(char)* notes_ref, .git_note_foreach_cb note_cb, void* payload)

Loop over all the notes within a specified namespace and issue a callback for each one.

git_note_free
void git_note_free(libgit2_d.types.git_note* note)

Free a git_note object

git_note_id
const(libgit2_d.oid.git_oid)* git_note_id(const(libgit2_d.types.git_note)* note)

Get the note object's id

git_note_iterator_free
void git_note_iterator_free(.git_note_iterator* it)

Frees an git_note_iterator

git_note_iterator_new
int git_note_iterator_new(.git_note_iterator** out_, libgit2_d.types.git_repository* repo, const(char)* notes_ref)

Creates a new iterator for notes

git_note_message
const(char)* git_note_message(const(libgit2_d.types.git_note)* note)

Get the note message

git_note_next
int git_note_next(libgit2_d.oid.git_oid* note_id, libgit2_d.oid.git_oid* annotated_id, .git_note_iterator* it)

Return the current item (note_id and annotated_id) and advance the iterator internally to the next value

git_note_read
int git_note_read(libgit2_d.types.git_note** out_, libgit2_d.types.git_repository* repo, const(char)* notes_ref, const(libgit2_d.oid.git_oid)* oid)

Read the note for an object

git_note_remove
int git_note_remove(libgit2_d.types.git_repository* repo, const(char)* notes_ref, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(libgit2_d.oid.git_oid)* oid)

Remove the note for an object

Structs

git_iterator
struct git_iterator

note iterator

Meta