Commit 2570478ea08a9ed02591a2cfbad57044dc2a2bf8

Tracey Emery 2020-01-15T22:10:30

set shorlog display limit define

diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 15fc0a9..6f259c4 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -1112,7 +1112,7 @@ gw_get_repo_shortlog(struct trans *gw_trans, const char *search_pattern)
 	     *commit_age = NULL, *commit_author = NULL, *commit_log = NULL,
 	     *shortlog_navs_html = NULL;
 	regex_t regex;
-	int have_match, limit = 25;
+	int have_match, limit = D_MAXSLCOMMDISP;
 	size_t newsize;
 	struct buf *diffbuf;
 	time_t committer_time;
diff --git a/gotweb/gotweb.h b/gotweb/gotweb.h
index 3ed3458..40a2d1d 100644
--- a/gotweb/gotweb.h
+++ b/gotweb/gotweb.h
@@ -44,6 +44,7 @@
 #define D_SHOWURL	 true
 #define	D_MAXREPO	 0
 #define D_MAXREPODISP	 25
+#define D_MAXSLCOMMDISP	 10
 #define D_MAXCOMMITDISP	 25
 
 #define BUFFER_SIZE	 2048