### ----------------------------------------------------
### -- LibGit2
### -- Licenses: NASA-1.3
### -- Authors: Curt Tilmes <Curt.Tilmes@nasa.gov>
### -- File: lib/Git/Note.rakumod
### ----------------------------------------------------
use NativeCall;
use Git::Error;
use Git::Signature;
use Git::Oid;

class Git::Note is repr('CPointer')
{
    sub git_note_free(Git::Note)
        is native('git2') {}

    submethod DESTROY { git_note_free(self) }

    method author(--> Git::Signature)
        is native('git2') is symbol('git_note_author') {}

    method committer(--> Git::Signature)
        is native('git2') is symbol('git_note_committer') {}

    method message(--> Str)
        is native('git2') is symbol('git_note_message') {}

    method id(--> Git::Oid)
        is native('git2') is symbol('git_note_id') {}
}


