org.eclipse.jgit.api
Class AddNoteCommand
java.lang.Object
org.eclipse.jgit.api.GitCommand<Note>
org.eclipse.jgit.api.AddNoteCommand
- All Implemented Interfaces:
- Callable<Note>
public class AddNoteCommand
- extends GitCommand<Note>
Add object notes.
- See Also:
- Git documentation about Notes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddNoteCommand
protected AddNoteCommand(Repository repo)
- Parameters:
repo -
call
public Note call()
throws JGitInternalException
- Throws:
JGitInternalException - upon internal failure
setObjectId
public AddNoteCommand setObjectId(RevObject id)
- Sets the object id of object you want a note on. If the object already
has a note, the existing note will be replaced.
- Parameters:
id -
- Returns:
this
setMessage
public AddNoteCommand setMessage(String message)
- Parameters:
message - the notes message used when adding a note
- Returns:
this
setNotesRef
public AddNoteCommand setNotesRef(String notesRef)
- Parameters:
notesRef - the ref to read notes from. Note, the default value of
Constants.R_NOTES_COMMITS will be used if nothing is
set
- Returns:
this- See Also:
Constants.R_NOTES_COMMITS
Copyright © 2011. All Rights Reserved.