Package org.eclipse.jgit.api
Class ShowNoteCommand
Show an object note.
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.api.GitCommand
repo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShowNoteCommand(Repository repo) Constructor for ShowNoteCommand. -
Method Summary
Modifier and TypeMethodDescriptioncall()setNotesRef(String notesRef) Set theRefto read notes from.setObjectId(RevObject id) Sets the object id of object you want a note onMethods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Field Details
-
id
-
notesRef
-
-
Constructor Details
-
ShowNoteCommand
Constructor for ShowNoteCommand.- Parameters:
repo- theRepository
-
-
Method Details
-
call
Execute the command
- Specified by:
callin interfaceCallable<Note>- Specified by:
callin classGitCommand<Note>- Throws:
GitAPIException
-
setObjectId
Sets the object id of object you want a note on- Parameters:
id- theRevObjectto show notes for.- Returns:
this
-
setNotesRef
Set theRefto read notes from.- Parameters:
notesRef- the ref to read notes from. Note, the default value ofConstants.R_NOTES_COMMITSwill be used if nothing is set- Returns:
this- See Also:
-