Package org.eclipse.jgit.api
Class ListNotesCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<java.util.List<Note>>
-
- org.eclipse.jgit.api.ListNotesCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.util.List<Note>>
public class ListNotesCommand extends GitCommand<java.util.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Note>call()Executes the commandListNotesCommandsetNotesRef(java.lang.String notesRef)-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
ListNotesCommand
protected ListNotesCommand(Repository repo)
- Parameters:
repo-
-
-
Method Detail
-
call
public java.util.List<Note> call() throws GitAPIException
Description copied from class:GitCommandExecutes the command- Specified by:
callin interfacejava.util.concurrent.Callable<java.util.List<Note>>- Specified by:
callin classGitCommand<java.util.List<Note>>- Returns:
- the requested notes
- Throws:
GitAPIException- or subclass thereof when an error occurs
-
setNotesRef
public ListNotesCommand setNotesRef(java.lang.String notesRef)
- Parameters:
notesRef- the ref to 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
-
-