From 6c7099c4125e6998bd1a2171a6e0163562917165 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 03 Apr 2025 18:17:13 +0800 Subject: [PATCH] git2d: Only show last three commits in index page --- git2d/main.c | 2 +- diff --git a/git2d/main.c b/git2d/main.c index 18958646ab22e61cbcc325bbe6b8436aa504502a..7671b72e3562449db1a8899990a759b58ed93801 100644 --- a/git2d/main.c +++ b/git2d/main.c @@ -145,7 +145,7 @@ } 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; -- 2.48.1