Used to obtain a list of tags.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ListTagCommand
(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
- aRepository
object.
-
-
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:GitCommand
Execute the command
- Specified by:
call
in interfaceCallable<List<Ref>>
- Specified by:
call
in classGitCommand<List<Ref>>
- Throws:
GitAPIException
-