/** * Skip the number of commits before starting to show the commit output. * * @param skip * the number of commits to skip * @return {@code this} */ public LogCommand setSkip(int skip) { checkCallable(); this.skip = skip; return this; }
/** * Limit the number of commits to output. * * @param maxCount * the limit * @return {@code this} */ public LogCommand setMaxCount(int maxCount) { checkCallable(); this.maxCount = maxCount; return this; }
/** * Set a filter for the <code>LogCommand</code>. * * @param aFilter * the filter that this instance of <code>LogCommand</code> * should use * @return {@code this} * @since 4.4 */ public LogCommand setRevFilter(RevFilter aFilter) { checkCallable(); this.revFilter = aFilter; return this; } }
/** * Show only commits that affect any of the specified paths. The path must * either name a file or a directory exactly and use <code>/</code> (slash) * as separator. Note that regex expressions or wildcards are not supported. * * @param path * a repository-relative path (with <code>/</code> as separator) * @return {@code this} */ public LogCommand addPath(String path) { checkCallable(); pathFilters.add(PathFilter.create(path)); return this; }
private LogCommand add(boolean include, AnyObjectId start) throws MissingObjectException, IncorrectObjectTypeException, JGitInternalException { checkCallable(); try { if (include) { walk.markStart(walk.lookupCommit(start)); startSpecified = true; } else walk.markUninteresting(walk.lookupCommit(start)); return this; } catch (MissingObjectException e) { throw e; } catch (IncorrectObjectTypeException e) { throw e; } catch (IOException e) { throw new JGitInternalException(MessageFormat.format( JGitText.get().exceptionOccurredDuringAddingOfOptionToALogCommand , start), e); } }
/** * Limit the number of commits to output. * * @param maxCount * the limit * @return {@code this} */ public LogCommand setMaxCount(int maxCount) { checkCallable(); this.maxCount = maxCount; return this; }
/** * Limit the number of commits to output. * * @param maxCount * the limit * @return {@code this} */ public LogCommand setMaxCount(int maxCount) { checkCallable(); this.maxCount = maxCount; return this; }
/** * Skip the number of commits before starting to show the commit output. * * @param skip * the number of commits to skip * @return {@code this} */ public LogCommand setSkip(int skip) { checkCallable(); this.skip = skip; return this; }
/** * Skip the number of commits before starting to show the commit output. * * @param skip * the number of commits to skip * @return {@code this} */ public LogCommand setSkip(int skip) { checkCallable(); this.skip = skip; return this; }
/** * Set a filter for the <code>LogCommand</code>. * * @param aFilter * the filter that this instance of <code>LogCommand</code> * should use * @return {@code this} * @since 4.4 */ public LogCommand setRevFilter(RevFilter aFilter) { checkCallable(); this.revFilter = aFilter; return this; } }
/** * Sets a filter for the <code>LogCommand</code>. * * * @param aFilter * the filter that this instance of <code>LogCommand</code> * should use * @return {@code this} * @since 4.4 */ public LogCommand setRevFilter(RevFilter aFilter) { checkCallable(); this.revFilter = aFilter; return this; } }
checkCallable(); if (pathFilters.size() > 0) walk.setTreeFilter(AndTreeFilter.create(
/** * Show only commits that affect any of the specified paths. The path must * either name a file or a directory exactly and use <code>/</code> (slash) * as separator. Note that regex expressions or wildcards are not supported. * * @param path * a repository-relative path (with <code>/</code> as separator) * @return {@code this} */ public LogCommand addPath(String path) { checkCallable(); pathFilters.add(PathFilter.create(path)); return this; }
/** * Show only commits that affect any of the specified paths. The path must * either name a file or a directory exactly and use <code>/</code> (slash) * as separator. Note that regex expressions or wildcards are not supported. * * @param path * a repository-relative path (with <code>/</code> as separator) * @return {@code this} */ public LogCommand addPath(String path) { checkCallable(); pathFilters.add(PathFilter.create(path)); return this; }
private LogCommand add(boolean include, AnyObjectId start) throws MissingObjectException, IncorrectObjectTypeException, JGitInternalException { checkCallable(); try { if (include) { walk.markStart(walk.lookupCommit(start)); startSpecified = true; } else walk.markUninteresting(walk.lookupCommit(start)); return this; } catch (MissingObjectException e) { throw e; } catch (IncorrectObjectTypeException e) { throw e; } catch (IOException e) { throw new JGitInternalException(MessageFormat.format( JGitText.get().exceptionOccurredDuringAddingOfOptionToALogCommand , start), e); } }
private LogCommand add(boolean include, AnyObjectId start) throws MissingObjectException, IncorrectObjectTypeException, JGitInternalException { checkCallable(); try { if (include) { walk.markStart(walk.lookupCommit(start)); startSpecified = true; } else walk.markUninteresting(walk.lookupCommit(start)); return this; } catch (MissingObjectException e) { throw e; } catch (IncorrectObjectTypeException e) { throw e; } catch (IOException e) { throw new JGitInternalException(MessageFormat.format( JGitText.get().exceptionOccurredDuringAddingOfOptionToALogCommand , start), e); } }
checkCallable(); if (pathFilters.size() > 0) walk.setTreeFilter(AndTreeFilter.create(
checkCallable(); if (pathFilters.size() > 0) walk.setTreeFilter(AndTreeFilter.create(