James Moger
2011-04-16 f602a2f552e1389ee465307723b492b1af378fd5
src/com/gitblit/wicket/panels/LogPanel.java
@@ -30,6 +30,8 @@
   private static final long serialVersionUID = 1L;
   private boolean hasMore = false;
   public LogPanel(String wicketId, final String repositoryName, String objectId, Repository r, int limit, int pageOffset) {
      super(wicketId);
      boolean pageResults = limit <= 0;
@@ -47,6 +49,10 @@
         // Fixed size result set
         commits = JGitUtils.getRevLog(r, objectId, 0, limit);
      }
      // inaccurate way to determine if there are more commits.
      // works unless commits.size() represents the exact end.
      hasMore = commits.size() >= itemsPerPage;
      // header
      if (pageResults) {
@@ -113,4 +119,8 @@
         }
      }
   }
   public boolean hasMore() {
      return hasMore;
   }
}