Class SubscribeSection


  • public abstract class SubscribeSection
    extends Object
    Portion of a Project describing superproject subscription rules.
    • Constructor Detail

      • SubscribeSection

        public SubscribeSection()
    • Method Detail

      • matchingRefSpecs

        protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec> matchingRefSpecs()
      • multiMatchRefSpecs

        protected abstract com.google.common.collect.ImmutableList<org.eclipse.jgit.transport.RefSpec> multiMatchRefSpecs()
      • appliesTo

        public boolean appliesTo​(BranchNameKey branch)
        Determines if the branch could trigger a superproject update as allowed via this subscribe section.
        Parameters:
        branch - the branch to check
        Returns:
        if the branch could trigger a superproject update
      • matchingRefSpecsAsString

        public Collection<String> matchingRefSpecsAsString()
      • multiMatchRefSpecsAsString

        public Collection<String> multiMatchRefSpecsAsString()
      • getDestinationBranches

        public com.google.common.collect.ImmutableSet<BranchNameKey> getDestinationBranches​(BranchNameKey src,
                                                                                            Collection<org.eclipse.jgit.lib.Ref> allRefsInRefsHeads)
        Evaluates what the destination branches for the subscription are.