Package org.eclipse.jgit.api
Class DeleteTagCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<List<String>>
-
- org.eclipse.jgit.api.DeleteTagCommand
-
public class DeleteTagCommand extends GitCommand<List<String>>
Used to delete one or several tags. The result ofcall()
is a list with the (full) names of the deleted 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 protected
DeleteTagCommand(Repository repo)
Constructor for DeleteTagCommand
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
call()
DeleteTagCommand
setTags(String... tags)
Set names of the tags to delete-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
DeleteTagCommand
protected DeleteTagCommand(Repository repo)
Constructor for DeleteTagCommand- Parameters:
repo
- theRepository
-
-
Method Detail
-
call
public List<String> call() throws GitAPIException
Execute the command
- Specified by:
call
in interfaceCallable<List<String>>
- Specified by:
call
in classGitCommand<List<String>>
- Throws:
GitAPIException
-
setTags
public DeleteTagCommand setTags(String... tags)
Set names of the tags to delete- Parameters:
tags
- the names of the tags to delete; if not set, this will do nothing; invalid tag names will simply be ignored- Returns:
- this instance
-
-