17. Note
These methods allow creating and reading git notes for git objects.
| parameters |
Returns |
| luagit2_note |
luagit2_signature |
luagit2_note : The note whose author signature is to be found.
- Returns
luagit2_signature or gives an error.
| parameters |
Returns |
| luagit2_note |
luagit2_signature |
luagit2_note : The note whose committer signature is to be found.
- Returns
luagit2_signature or gives an error.
Create a note with a new commit for an object.
| parameters |
Returns |
| luagit2_repository |
luagit2_oid (commit_id) |
| luagit2_commit (immediate
parent commit ) |
luagit2_oid (blob_id) |
| luagit2_signature(author) |
| luagit2_signature(committer) |
| luagit2_oid |
| message (string) |
| force(int) |
luagit2_repository : The repos where to make a new note.
luagit2_commit : The parent commit using which new note’ creation commit will be made.
luagit2_signature : The author signature.
luagit2_signature : The committer signature.
luagit2_oid : The target object’s oid.
message : The note message.
force : integer equivalent of boolean to force create note.
- Returns these values or gives an error.
- Commit’s oid
- Note blob’s oid.
Create a note without a new commit for an object.
| parameters |
Returns |
| luagit2_repository |
luagit2_oid (commit_id) |
| notes_ref (string) |
luagit2_oid (blob_id) |
| luagit2_signature(author) |
| luagit2_signature(committer) |
| luagit2_oid |
| message (string) |
| force(int) |
luagit2_repository : The repos where to make a new note.
notes_ref : The note reference where new note will be created.
luagit2_signature : The author signature.
luagit2_signature : The committer signature.
luagit2_oid : The target object’s oid.
message : The note message.
force : integer equivalent of boolean to force create note.
- Returns these values or gives an error.
- Commit’s oid
- Note blob’s oid.
| parameters |
Returns |
| luagit2_note |
None |
luagit2_note : The note to free.
- Returns none or gives an error.
| parameters |
Returns |
| luagit2_note |
message (string) |
luagit2_note : The note whose message is to be found.
- Returns message or gives an error.
| parameters |
Returns |
| luagit2_note |
luagit2_oid |
luagit2_note : The note whose oid is to be found.
- Returns corresponding
luagit2_oid or gives an error.
Remove an existing note with a new commit.
| parameters |
Returns |
| luagit2_repository |
luagit2_oid (commit_id) |
| luagit2_commit (immediate
parent commit ) |
luagit2_oid (blob_id) |
| luagit2_signature(author) |
| luagit2_signature(committer) |
| luagit2_oid |
luagit2_repository : The repos where to make a new note.
luagit2_commit : The parent commit using which note deletion commit will be made.
luagit2_signature : The author signature.
luagit2_signature : The committer signature.
luagit2_oid : The note oid to remove.
- Returns none or gives an error.
Remove a commit without making a new commit.
| parameters |
Returns |
| luagit2_repository |
luagit2_oid (commit_id) |
| notes_ref (string) |
luagit2_oid (blob_id) |
| luagit2_signature(author) |
| luagit2_signature(committer) |
| luagit2_oid |
luagit2_repository : The repos where to make a new note.
notes_ref : The ref where to look for the note to be deleted.
luagit2_signature : The author signature.
luagit2_signature : The committer signature.
luagit2_oid : The note oid to remove.
- Returns none or gives an error.
| parameters |
Returns |
| luagit2_repository |
luagit2_note |
| notes_ref (string) |
| luagit2_oid |
luagit2_repository : Thhe repository where to look for notes.
notes_ref : The reference name for the notes refs.
luagit2_oid : The oid of note to be found.
- Returns corresponding
luagit2_note or gives an error.
| parameters |
Returns |
| luagit2_repository |
luagit2_note |
| luagit2_commit |
| luagit2_oid |
luagit2_repository : Thhe repository where to look for notes.
luagit2_commit : The commit corresponding to creation of note for the object.
luagit2_oid : The oid of note to be found.
- Returns corresponding
luagit2_note or gives an error.