/** * Determine if the current entry is a parent, a match, or no match. * <p> * This method extends the result returned by {@link #include(TreeWalk)} * with a third option (-1), splitting the value true. This gives the * application a possibility to distinguish between an exact match and the * case when a subtree to the current entry might be a match. * * @param walker * the walker the filter needs to examine. * @return -1 if the current entry is a parent of the filter but no exact * match has been made; 0 if the current entry should be seen by the * application; 1 if it should be hidden. * @throws org.eclipse.jgit.errors.MissingObjectException * as thrown by {@link #include(TreeWalk)} * @throws org.eclipse.jgit.errors.IncorrectObjectTypeException * as thrown by {@link #include(TreeWalk)} * @throws java.io.IOException * as thrown by {@link #include(TreeWalk)} * @since 4.7 */ public int matchFilter(TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { return include(walker) ? 0 : 1; }
if (filter != null) { try { boolean marked = filter.include(walk); if (marked) marks |= (1L << index);
/** {@inheritDoc} */ @Override public boolean include(TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { return path.include(walker) && ANY_DIFF.include(walker); }
@Override public boolean include(final TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { return !a.include(walker); }
@Override public boolean include(final TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { for (final TreeFilter f : subfilters) { if (!f.include(walker)) return false; } return true; }
public boolean include(final TreeWalk walker) throws IOException { return filter.include(walker); } }
@Override public boolean include(final TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { for (final TreeFilter f : subfilters) { if (f.include(walker)) return true; } return false; }
/** * Determine if the current entry is a parent, a match, or no match. * <p> * This method extends the result returned by {@link #include(TreeWalk)} * with a third option (-1), splitting the value true. This gives the * application a possibility to distinguish between an exact match and the * case when a subtree to the current entry might be a match. * * @param walker * the walker the filter needs to examine. * @return -1 if the current entry is a parent of the filter but no exact * match has been made; 0 if the current entry should be seen by the * application; 1 if it should be hidden. * @throws org.eclipse.jgit.errors.MissingObjectException * as thrown by {@link #include(TreeWalk)} * @throws org.eclipse.jgit.errors.IncorrectObjectTypeException * as thrown by {@link #include(TreeWalk)} * @throws java.io.IOException * as thrown by {@link #include(TreeWalk)} * @since 4.7 */ public int matchFilter(TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { return include(walker) ? 0 : 1; }
if (filter != null) { try { boolean marked = filter.include(walk); if (marked) marks |= (1L << index);
if (filter != null) { try { boolean marked = filter.include(walk); if (marked) marks |= (1L << index);
/** {@inheritDoc} */ @Override public boolean include(TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { return path.include(walker) && ANY_DIFF.include(walker); }
/** {@inheritDoc} */ @Override public boolean include(TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { return path.include(walker) && ANY_DIFF.include(walker); }
@Override public boolean include(final TreeWalk walker) throws MissingObjectException, IncorrectObjectTypeException, IOException { return path.include(walker) && ANY_DIFF.include(walker); }
if (!filter.include(this)) { skipEntriesEqual(); continue;