org.eclipse.jgit.api
Class DeleteTagCommand

java.lang.Object
  extended by org.eclipse.jgit.api.GitCommand<List<String>>
      extended by 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

Field Summary
 
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
 
Constructor Summary
protected DeleteTagCommand(Repository repo)
           
 
Method Summary
 List<String> call()
           
 DeleteTagCommand setTags(String... tags)
           
 
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteTagCommand

protected DeleteTagCommand(Repository repo)
Parameters:
repo -
Method Detail

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.