Package org.eclipse.jgit.api
Class RemoveNoteCommand
Remove object notes.
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RemoveNoteCommand
(Repository repo) Constructor for RemoveNoteCommand. -
Method Summary
Modifier and TypeMethodDescriptioncall()
setNotesRef
(String notesRef) Set the name of theRef
to remove a note from.setObjectId
(RevObject id) Sets the object id of object you want to remove a noteMethods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Field Details
-
id
-
notesRef
-
-
Constructor Details
-
RemoveNoteCommand
Constructor for RemoveNoteCommand.
- 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 to remove a note- Parameters:
id
- theRevObject
to remove a note from.- Returns:
this
-
setNotesRef
Set the name of theRef
to remove a note from.- Parameters:
notesRef
- theRef
to read notes from. Note, the default value ofConstants.R_NOTES_COMMITS
will be used if nothing is set- Returns:
this
- See Also:
-