Top Description Fields Constructors Methods
org.eclipse.jgit.api

public Class DeleteTagCommand

extends GitCommand<List<String>>
Class Inheritance
Imports
java.io.IOException, java.text.MessageFormat, java.util.ArrayList, .Arrays, .HashSet, .List, .Set, org.eclipse.jgit.api.errors.GitAPIException, .JGitInternalException, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.Ref, .RefUpdate, .RefUpdate.Result, .Repository

Used to delete one or several tags. The result of call() is a list with the (full) names of the deleted tags.
See Also
Git documentation about Tag

Field Summary

Modifier and TypeField and Description
private final Set<String>
Inherited from org.eclipse.jgit.api.GitCommand:
repo

Constructor Summary

AccessConstructor and Description
protected
DeleteTagCommand(Repository repo)

Constructor for DeleteTagCommand

Method Summary

Modifier and TypeMethod and Description
public List<String>
call()

Implements abstract org.eclipse.jgit.api.GitCommand.call.

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

public DeleteTagCommand

Returns:

this instance
setTags
(String...
the names of the tags to delete; if not set, this will do nothing; invalid tag names will simply be ignored
tags
)

Set names of the tags to delete

Inherited from org.eclipse.jgit.api.GitCommand:
checkCallablegetRepositorysetCallable

Field Detail

tagsback to summary
private final Set<String> tags

Constructor Detail

DeleteTagCommandback to summary
protected DeleteTagCommand(Repository repo)

Constructor for DeleteTagCommand

Parameters
repo:Repository

the org.eclipse.jgit.lib.Repository

Method Detail

callback to summary
public List<String> call() throws GitAPIException

Implements abstract org.eclipse.jgit.api.GitCommand.call.

Implements java.util.concurrent.Callable.call.

Doc from org.eclipse.jgit.api.GitCommand.call.

Computes a result, or throws an exception if unable to do so.

Execute the command

Returns:List<String>

Doc from java.util.concurrent.Callable.call.

computed result

Annotations
@Override
setTagsback to summary
public DeleteTagCommand setTags(String... tags)

Set names of the tags to delete

Parameters
tags:String[]

the names of the tags to delete; if not set, this will do nothing; invalid tag names will simply be ignored

Returns:DeleteTagCommand

this instance