Class RevFlagFilter

java.lang.Object
org.eclipse.jgit.revwalk.filter.RevFilter
org.eclipse.jgit.revwalk.filter.RevFlagFilter
Direct Known Subclasses:
RevFlagFilter.HasAll, RevFlagFilter.HasAny

public abstract class RevFlagFilter extends RevFilter
Matches only commits with some/all RevFlags already set.
  • Field Details

  • Constructor Details

  • Method Details

    • has

      public static RevFilter has(RevFlag a)
      Create a new filter that tests for a single flag.
      Parameters:
      a - the flag to test.
      Returns:
      filter that selects only commits with flag a.
    • hasAll

      public static RevFilter hasAll(RevFlag... a)
      Create a new filter that tests all flags in a set.
      Parameters:
      a - set of flags to test.
      Returns:
      filter that selects only commits with all flags in a.
    • hasAll

      public static RevFilter hasAll(RevFlagSet a)
      Create a new filter that tests all flags in a set.
      Parameters:
      a - set of flags to test.
      Returns:
      filter that selects only commits with all flags in a.
    • hasAny

      public static RevFilter hasAny(RevFlag... a)
      Create a new filter that tests for any flag in a set.
      Parameters:
      a - set of flags to test.
      Returns:
      filter that selects only commits with any flag in a.
    • hasAny

      public static RevFilter hasAny(RevFlagSet a)
      Create a new filter that tests for any flag in a set.
      Parameters:
      a - set of flags to test.
      Returns:
      filter that selects only commits with any flag in a.
    • clone

      public RevFilter clone()

      Clone this revision filter, including its parameters.

      This is a deep clone. If this filter embeds objects or other filters it must also clone those, to ensure the instances do not share mutable data.

      Specified by:
      clone in class RevFilter
    • toString

      public String toString()
      Overrides:
      toString in class RevFilter