public class AddNoteCommand extends GitCommand<Note>
| Modifier and Type | Field and Description |
|---|---|
private RevObject |
id |
private java.lang.String |
message |
private java.lang.String |
notesRef |
repo| Modifier | Constructor and Description |
|---|---|
protected |
AddNoteCommand(Repository repo)
Constructor for AddNoteCommand
|
| Modifier and Type | Method and Description |
|---|---|
Note |
call() |
(package private) static void |
commitNoteMap(Repository r,
java.lang.String ref,
RevWalk walk,
NoteMap map,
RevCommit notesCommit,
ObjectInserter inserter,
java.lang.String msg) |
AddNoteCommand |
setMessage(java.lang.String message)
Set the notes message
|
AddNoteCommand |
setNotesRef(java.lang.String notesRef)
Set name of a
Ref to read notes from |
AddNoteCommand |
setObjectId(RevObject id)
Sets the object id of object you want a note on.
|
checkCallable, getRepository, setCallableprivate RevObject id
private java.lang.String message
private java.lang.String notesRef
protected AddNoteCommand(Repository repo)
repo - the Repositorypublic Note call() throws GitAPIException
Execute the command
call in interface java.util.concurrent.Callable<Note>call in class GitCommand<Note>GitAPIExceptionpublic AddNoteCommand setObjectId(RevObject id)
id - a RevObjectthispublic AddNoteCommand setMessage(java.lang.String message)
message - the notes message used when adding a notethisstatic void commitNoteMap(Repository r, java.lang.String ref, RevWalk walk, NoteMap map, RevCommit notesCommit, ObjectInserter inserter, java.lang.String msg) throws java.io.IOException
java.io.IOExceptionpublic AddNoteCommand setNotesRef(java.lang.String notesRef)
Ref to read notes fromnotesRef - the ref to read notes from. Note, the default value of
Constants.R_NOTES_COMMITS will be
used if nothing is setthisConstants.R_NOTES_COMMITS