/** * Constructs a new {@code LogFilter} with the given parameters. * * @param oldestCommitId the oldest commit, exclusive. Indicates when to stop evaluating. * @param timeRange extra time range filter besides oldest commit * @param paths extra filter on content, indicates to return only commits that affected any * of the provided paths * @param commiter the regexp pattern to filter author names * @param author the regexp pattern to filter commiter names */ public LogFilter(final ObjectId oldestCommitId, final Range<Long> timeRange, final Set<String> paths, Pattern author, Pattern commiter) { Preconditions.checkNotNull(oldestCommitId); Preconditions.checkNotNull(timeRange); this.oldestCommitId = oldestCommitId; this.timeRange = timeRange; this.author = author; this.committer = commiter; this.paths = paths; findTreeChild = command(FindTreeChild.class); }
/** * Constructs a new {@code LogFilter} with the given parameters. * * @param oldestCommitId the oldest commit, exclusive. Indicates when to stop evaluating. * @param timeRange extra time range filter besides oldest commit * @param paths extra filter on content, indicates to return only commits that affected any * of the provided paths * @param commiter the regexp pattern to filter author names * @param author the regexp pattern to filter commiter names */ public LogFilter(final ObjectId oldestCommitId, final Range<Long> timeRange, final Set<String> paths, Pattern author, Pattern commiter) { Preconditions.checkNotNull(oldestCommitId); Preconditions.checkNotNull(timeRange); this.oldestCommitId = oldestCommitId; this.timeRange = timeRange; this.author = author; this.committer = commiter; this.paths = paths; findTreeChild = command(FindTreeChild.class); }
newestCommitId = command(RevParse.class).setRefSpec(Ref.HEAD).call().get(); } else { if (!repository().commitExists(this.until)) {