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
ConstructorsModifierConstructorDescriptionprotectedRemoveNoteCommand(Repository repo) Constructor for RemoveNoteCommand. -
Method Summary
Modifier and TypeMethodDescriptioncall()setNotesRef(String notesRef) Set the name of theRefto 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:
callin interfaceCallable<Note>- Specified by:
callin classGitCommand<Note>- Throws:
GitAPIException
-
setObjectId
Sets the object id of object you want to remove a note- Parameters:
id- theRevObjectto remove a note from.- Returns:
this
-
setNotesRef
Set the name of theRefto remove a note from.- Parameters:
notesRef- theRefto read notes from. Note, the default value ofConstants.R_NOTES_COMMITSwill be used if nothing is set- Returns:
this- See Also:
-