public class RemoveNoteCommand extends GitCommand<Note>
repo
Modifier | Constructor and Description |
---|---|
protected |
RemoveNoteCommand(Repository repo)
Constructor for RemoveNoteCommand.
|
Modifier and Type | Method and Description |
---|---|
Note |
call() |
RemoveNoteCommand |
setNotesRef(String notesRef)
Set the name of the
Ref to remove a note from. |
RemoveNoteCommand |
setObjectId(RevObject id)
Sets the object id of object you want to remove a note
|
checkCallable, getRepository, setCallable
protected RemoveNoteCommand(Repository repo)
Constructor for RemoveNoteCommand.
repo
- the Repository
public Note call() throws GitAPIException
Execute the command
call
in interface Callable<Note>
call
in class GitCommand<Note>
GitAPIException
public RemoveNoteCommand setObjectId(RevObject id)
id
- the RevObject
to remove a
note from.this
public RemoveNoteCommand setNotesRef(String notesRef)
Ref
to remove a note from.notesRef
- the Ref
to read notes from. Note, the default value of
Constants.R_NOTES_COMMITS
will be
used if nothing is setthis
Constants.R_NOTES_COMMITS
Copyright © 2019 Eclipse JGit Project. All rights reserved.