org.eclipse.jgit.api
Class DeleteTagCommand
java.lang.Object
org.eclipse.jgit.api.GitCommand<List<String>>
org.eclipse.jgit.api.DeleteTagCommand
- All Implemented Interfaces:
- Callable<List<String>>
public class DeleteTagCommand
- extends GitCommand<List<String>>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteTagCommand
protected DeleteTagCommand(Repository repo)
- Parameters:
repo
-
call
public List<String> call()
throws JGitInternalException
- Returns:
- the list with the full names of the deleted tags
- Throws:
JGitInternalException
- when trying to delete a tag that doesn't exist
setTags
public DeleteTagCommand setTags(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
Copyright © 2011. All Rights Reserved.