Package org.eclipse.jgit.api
Class DeleteTagCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<java.util.List<java.lang.String>>
-
- org.eclipse.jgit.api.DeleteTagCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.util.List<java.lang.String>>
public class DeleteTagCommand extends GitCommand<java.util.List<java.lang.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
call()
Executes the commandDeleteTagCommand
setTags(java.lang.String... tags)
-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
DeleteTagCommand
protected DeleteTagCommand(Repository repo)
- Parameters:
repo
-
-
-
Method Detail
-
call
public java.util.List<java.lang.String> call() throws GitAPIException
Description copied from class:GitCommand
Executes the command- Specified by:
call
in interfacejava.util.concurrent.Callable<java.util.List<java.lang.String>>
- Specified by:
call
in classGitCommand<java.util.List<java.lang.String>>
- Returns:
- the list with the full names of the deleted tags
- Throws:
GitAPIException
- or subclass thereof when an error occurs
-
setTags
public DeleteTagCommand setTags(java.lang.String... tags)
- 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
-
-