public class AddNoteCommand extends GitCommand<Note>
repo
Modifier | Constructor and Description |
---|---|
protected |
AddNoteCommand(Repository repo)
Constructor for AddNoteCommand
|
Modifier and Type | Method and Description |
---|---|
Note |
call() |
AddNoteCommand |
setMessage(String message)
Set the notes message
|
AddNoteCommand |
setNotesRef(String notesRef)
Set name of a
Ref to read notes from |
AddNoteCommand |
setObjectId(RevObject id)
Sets the object id of object you want a note on.
|
checkCallable, getRepository, setCallable
protected AddNoteCommand(Repository repo)
repo
- the Repository
public Note call() throws GitAPIException
Execute the command
call
in interface Callable<Note>
call
in class GitCommand<Note>
GitAPIException
public AddNoteCommand setObjectId(RevObject id)
id
- a RevObject
this
public AddNoteCommand setMessage(String message)
message
- the notes message used when adding a notethis
public AddNoteCommand setNotesRef(String notesRef)
Ref
to read notes fromnotesRef
- 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.