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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.lang.String> tags  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DeleteTagCommand​(Repository repo)
      Constructor for DeleteTagCommand
    • Field Detail

      • tags

        private final java.util.Set<java.lang.String> tags
    • Constructor Detail

      • DeleteTagCommand

        protected DeleteTagCommand​(Repository repo)
        Constructor for DeleteTagCommand
        Parameters:
        repo - the Repository
    • Method Detail

      • call

        public java.util.List<java.lang.String> call()
                                              throws GitAPIException

        Execute 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>>
        Throws:
        GitAPIException
      • setTags

        public DeleteTagCommand setTags​(java.lang.String... tags)
        Set names of the tags to delete
        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