Top Description Fields Constructors Methods
org.eclipse.jgit.api

public Class StashListCommand

extends GitCommand<Collection<RevCommit>>
Class Inheritance
Imports
java.io.IOException, java.text.MessageFormat, java.util.ArrayList, .Collection, .Collections, .List, org.eclipse.jgit.api.errors.GitAPIException, .InvalidRefNameException, .JGitInternalException, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.Constants, .ReflogEntry, .Repository, org.eclipse.jgit.revwalk.RevCommit, .RevWalk

Command class to list the stashed commits in a repository.
See Also
Git documentation about Stash

Field Summary

Inherited from org.eclipse.jgit.api.GitCommand:
repo

Constructor Summary

AccessConstructor and Description
public
StashListCommand(Repository repo)

Create a new stash list command

Method Summary

Modifier and TypeMethod and Description
public Collection<RevCommit>
call()

Implements abstract org.eclipse.jgit.api.GitCommand.call.

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Inherited from org.eclipse.jgit.api.GitCommand:
checkCallablegetRepositorysetCallable

Constructor Detail

StashListCommandback to summary
public StashListCommand(Repository repo)

Create a new stash list command

Parameters
repo:Repository

a org.eclipse.jgit.lib.Repository object.

Method Detail

callback to summary
public Collection<RevCommit> call() throws GitAPIException, InvalidRefNameException

Implements abstract org.eclipse.jgit.api.GitCommand.call.

Implements java.util.concurrent.Callable.call.

Doc from org.eclipse.jgit.api.GitCommand.call.

Computes a result, or throws an exception if unable to do so.

Execute the command

Returns:Collection<RevCommit>

Doc from java.util.concurrent.Callable.call.

computed result

Annotations
@Override