Package org.eclipse.jgit.api
Class ListTagCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<List<Ref>>
-
- org.eclipse.jgit.api.ListTagCommand
-
public class ListTagCommand extends GitCommand<List<Ref>>
Used to obtain a list of tags.- See Also:
- Git documentation about Tag
-
-
Field Summary
-
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedListTagCommand(Repository repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Ref>call()Executes the command-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
ListTagCommand
protected ListTagCommand(Repository repo)
- Parameters:
repo-
-
-
Method Detail
-
call
public List<Ref> call() throws GitAPIException
Description copied from class:GitCommandExecutes the command- Specified by:
callin interfaceCallable<List<Ref>>- Specified by:
callin classGitCommand<List<Ref>>- Returns:
- the tags available
- Throws:
GitAPIException- or subclass thereof when an error occurs
-
-