- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<List<Note>>
-
- org.eclipse.jgit.api.ListNotesCommand
-
public class ListNotesCommand extends GitCommand<List<Note>>
List 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 protectedListNotesCommand(Repository repo)Constructor for ListNotesCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Note>call()ListNotesCommandsetNotesRef(String notesRef)Set theRefto read notes from-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
ListNotesCommand
protected ListNotesCommand(Repository repo)
Constructor for ListNotesCommand.- Parameters:
repo- theRepository
-
-
Method Detail
-
call
public List<Note> call() throws GitAPIException
Execute the command
- Specified by:
callin interfaceCallable<List<Note>>- Specified by:
callin classGitCommand<List<Note>>- Throws:
GitAPIException
-
setNotesRef
public ListNotesCommand setNotesRef(String notesRef)
Set theRefto read notes from- Parameters:
notesRef- the name of theRefto read notes from. Note, the default value ofConstants.R_NOTES_COMMITSwill be used if nothing is set- Returns:
this- See Also:
Constants.R_NOTES_COMMITS
-
-