From 6c7099c4125e6998bd1a2171a6e0163562917165 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 3 Apr 2025 18:17:13 +0800 Subject: git2d: Only show last three commits in index page --- git2d/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git2d/main.c b/git2d/main.c index 1895864..7671b72 100644 --- a/git2d/main.c +++ b/git2d/main.c @@ -145,7 +145,7 @@ session(void *_conn) int count = 0; git_oid oid; - while (count < 5 && git_revwalk_next(&oid, walker) == 0) { + while (count < 3 && git_revwalk_next(&oid, walker) == 0) { git_commit *commit = NULL; if (git_commit_lookup(&commit, repo, &oid) != 0) break; -- cgit v1.2.3