Used to obtain a list of tags.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedListTagCommand(Repository repo) Constructor for ListTagCommand. -
Method Summary
Modifier and TypeMethodDescriptioncall()setContains(AnyObjectId commit) Only list tags which contain the specified commit.Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Constructor Details
-
ListTagCommand
Constructor for ListTagCommand.- Parameters:
repo- aRepositoryobject.
-
-
Method Details
-
setContains
public ListTagCommand setContains(AnyObjectId commit) throws MissingObjectException, IncorrectObjectTypeException, IOException Only list tags which contain the specified commit.- Parameters:
commit- the specified commit- Returns:
- this command
- Throws:
IOException- if an IO error occurredIncorrectObjectTypeException- if commit has an incorrect object typeMissingObjectException- if the commit is missing- Since:
- 6.6
-
call
Description copied from class:GitCommandExecute the command
- Specified by:
callin interfaceCallable<List<Ref>>- Specified by:
callin classGitCommand<List<Ref>>- Throws:
GitAPIException
-