public class ShowNoteCommand extends GitCommand<Note>
| Modifier and Type | Field and Description |
|---|---|
private RevObject |
id |
private java.lang.String |
notesRef |
repo| Modifier | Constructor and Description |
|---|---|
protected |
ShowNoteCommand(Repository repo)
Constructor for ShowNoteCommand.
|
| Modifier and Type | Method and Description |
|---|---|
Note |
call() |
ShowNoteCommand |
setNotesRef(java.lang.String notesRef)
Set the
Ref to read notes from. |
ShowNoteCommand |
setObjectId(RevObject id)
Sets the object id of object you want a note on
|
checkCallable, getRepository, setCallableprivate RevObject id
private java.lang.String notesRef
protected ShowNoteCommand(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 ShowNoteCommand setObjectId(RevObject id)
id - the RevObject to show notes
for.thispublic ShowNoteCommand setNotesRef(java.lang.String notesRef)
Ref to read notes from.notesRef - 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