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
ConstructorsModifierConstructorDescriptionprotected
ShowNoteCommand
(Repository repo) Constructor for ShowNoteCommand. -
Method Summary
Modifier and TypeMethodDescriptioncall()
setNotesRef
(String notesRef) Set theRef
to 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:
call
in interfaceCallable<Note>
- Specified by:
call
in classGitCommand<Note>
- Throws:
GitAPIException
-
setObjectId
Sets the object id of object you want a note on- Parameters:
id
- theRevObject
to show notes for.- Returns:
this
-
setNotesRef
Set theRef
to read notes from.- Parameters:
notesRef
- the ref to read notes from. Note, the default value ofConstants.R_NOTES_COMMITS
will be used if nothing is set- Returns:
this
- See Also:
-