summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--cgit.c2
-rw-r--r--cgit.h2
-rw-r--r--ui-log.c4
3 files changed, 5 insertions, 3 deletions
diff --git a/cgit.c b/cgit.c
index e5d8fbd..34e590e 100644
--- a/cgit.c
+++ b/cgit.c
@@ -96,3 +96,3 @@ static void cgit_print_repo_page(struct cacheitem *item)
cgit_max_commit_count, cgit_query_search,
- cgit_query_path);
+ cgit_query_path, 1);
break;
diff --git a/cgit.h b/cgit.h
index 5c55bec..d6bcde2 100644
--- a/cgit.h
+++ b/cgit.h
@@ -215,3 +215,3 @@ extern void cgit_print_repolist(struct cacheitem *item);
extern void cgit_print_summary();
-extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path);
+extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager);
extern void cgit_print_view(const char *hex, char *path);
diff --git a/ui-log.c b/ui-log.c
index 75bbbe4..bb17e1d 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -56,3 +56,3 @@ void print_commit(struct commit *commit)
-void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path)
+void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager)
{
@@ -112,2 +112,3 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path)
+ if (pager) {
html("<div class='pager'>");
@@ -128 +129,2 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path)
}
+}