|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.api.GitCommand<Note>
org.eclipse.jgit.api.AddNoteCommand
public class AddNoteCommand
Add object notes.
Field Summary |
---|
Fields inherited from class org.eclipse.jgit.api.GitCommand |
---|
repo |
Constructor Summary | |
---|---|
protected |
AddNoteCommand(Repository repo)
|
Method Summary | |
---|---|
Note |
call()
Executes the command |
AddNoteCommand |
setMessage(java.lang.String message)
|
AddNoteCommand |
setNotesRef(java.lang.String notesRef)
|
AddNoteCommand |
setObjectId(RevObject id)
Sets the object id of object you want a note on. |
Methods inherited from class org.eclipse.jgit.api.GitCommand |
---|
checkCallable, getRepository, setCallable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AddNoteCommand(Repository repo)
repo
- Method Detail |
---|
public Note call() throws GitAPIException
GitCommand
call
in interface java.util.concurrent.Callable<Note>
call
in class GitCommand<Note>
GitAPIException
- or subclass thereof when an error occurspublic AddNoteCommand setObjectId(RevObject id)
id
-
this
public AddNoteCommand setMessage(java.lang.String message)
message
- the notes message used when adding a note
this
public AddNoteCommand setNotesRef(java.lang.String notesRef)
notesRef
- the ref to read notes from. Note, the default value of
Constants.R_NOTES_COMMITS
will be used if nothing is
set
this
Constants.R_NOTES_COMMITS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |