Class 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 of call() is a list with the (full) names of the deleted tags.
    See Also:
    Git documentation about Tag
    • 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 interface java.util.concurrent.Callable<java.util.List<java.lang.String>>
        Specified by:
        call in class GitCommand<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