- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<Collection<RevCommit>>
-
- org.eclipse.jgit.api.StashListCommand
-
- All Implemented Interfaces:
Callable<Collection<RevCommit>>
public class StashListCommand extends GitCommand<Collection<RevCommit>>
Command class to list the stashed commits in a repository.- See Also:
- Git documentation about Stash
-
-
Field Summary
-
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
-
Constructor Summary
Constructors Constructor Description StashListCommand(Repository repo)Create a new stash list command
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<RevCommit>call()-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
StashListCommand
public StashListCommand(Repository repo)
Create a new stash list command- Parameters:
repo- aRepositoryobject.
-
-
Method Detail
-
call
public Collection<RevCommit> call() throws GitAPIException, InvalidRefNameException
Execute the command
- Specified by:
callin interfaceCallable<Collection<RevCommit>>- Specified by:
callin classGitCommand<Collection<RevCommit>>- Throws:
GitAPIExceptionInvalidRefNameException
-
-