/** * Set the object filter for this walker. This filter affects the objects * visited by {@link #nextObject()}. It does not affect the commits listed * by {@link #next()}. * <p> * If the filter returns false for an object, then that object is skipped * and objects reachable from it are not enqueued to be walked recursively. * This can be used to speed up the object walk by skipping subtrees that * are known to be uninteresting. * * @param newFilter * the new filter. If null the special * {@link org.eclipse.jgit.revwalk.filter.ObjectFilter#ALL} * filter will be used instead, as it matches every object. * @since 4.0 */ public void setObjectFilter(ObjectFilter newFilter) { assertNotStarted(); objectFilter = newFilter != null ? newFilter : ObjectFilter.ALL; }
/** * Set the object filter for this walker. This filter affects the objects * visited by {@link #nextObject()}. It does not affect the commits listed * by {@link #next()}. * <p> * If the filter returns false for an object, then that object is skipped * and objects reachable from it are not enqueued to be walked recursively. * This can be used to speed up the object walk by skipping subtrees that * are known to be uninteresting. * * @param newFilter * the new filter. If null the special * {@link org.eclipse.jgit.revwalk.filter.ObjectFilter#ALL} * filter will be used instead, as it matches every object. * @since 4.0 */ public void setObjectFilter(ObjectFilter newFilter) { assertNotStarted(); objectFilter = newFilter != null ? newFilter : ObjectFilter.ALL; }
/** * Set the object filter for this walker. This filter affects the objects * visited by {@link #nextObject()}. It does not affect the commits listed * by {@link #next()}. * <p> * If the filter returns false for an object, then that object is skipped * and objects reachable from it are not enqueued to be walked recursively. * This can be used to speed up the object walk by skipping subtrees that * are known to be uninteresting. * * @param newFilter * the new filter. If null the special * {@link org.eclipse.jgit.revwalk.filter.ObjectFilter#ALL} * filter will be used instead, as it matches every object. * @since 4.0 */ public void setObjectFilter(ObjectFilter newFilter) { assertNotStarted(); objectFilter = newFilter != null ? newFilter : ObjectFilter.ALL; }
/** * Set the object filter for this walker. This filter affects the objects * visited by {@link #nextObject()}. It does not affect the commits * listed by {@link #next()}. * <p> * If the filter returns false for an object, then that object is skipped * and objects reachable from it are not enqueued to be walked recursively. * This can be used to speed up the object walk by skipping subtrees that * are known to be uninteresting. * * @param newFilter * the new filter. If null the special {@link ObjectFilter#ALL} * filter will be used instead, as it matches every object. * * @since 4.0 */ public void setObjectFilter(ObjectFilter newFilter) { assertNotStarted(); objectFilter = newFilter != null ? newFilter : ObjectFilter.ALL; }