Package org.eclipse.jgit.api
Class RemoveNoteCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<Note>
-
- org.eclipse.jgit.api.RemoveNoteCommand
-
public class RemoveNoteCommand extends GitCommand<Note>
Remove object notes.- See Also:
- Git documentation about Notes
-
-
Field Summary
-
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoveNoteCommand(Repository repo)
Constructor for RemoveNoteCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Note
call()
RemoveNoteCommand
setNotesRef(String notesRef)
Set the name of theRef
to remove a note from.RemoveNoteCommand
setObjectId(RevObject id)
Sets the object id of object you want to remove a note-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
RemoveNoteCommand
protected RemoveNoteCommand(Repository repo)
Constructor for RemoveNoteCommand.
- Parameters:
repo
- theRepository
-
-
Method Detail
-
call
public Note call() throws GitAPIException
Execute the command
- Specified by:
call
in interfaceCallable<Note>
- Specified by:
call
in classGitCommand<Note>
- Throws:
GitAPIException
-
setObjectId
public RemoveNoteCommand setObjectId(RevObject id)
Sets the object id of object you want to remove a note- Parameters:
id
- theRevObject
to remove a note from.- Returns:
this
-
setNotesRef
public RemoveNoteCommand setNotesRef(String notesRef)
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:
Constants.R_NOTES_COMMITS
-
-