aboutsummaryrefslogtreecommitdiff
path: root/git2d/main.c
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-03 18:17:13 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-03 18:17:13 +0800
commit6c7099c4125e6998bd1a2171a6e0163562917165 (patch)
treeb8b8e41ca6a209716981c0efa5945148228c55ef /git2d/main.c
parentHTML: Don't use <table> for the repo index page's commit list (diff)
downloadforge-6c7099c4125e6998bd1a2171a6e0163562917165.tar.gz
forge-6c7099c4125e6998bd1a2171a6e0163562917165.tar.zst
forge-6c7099c4125e6998bd1a2171a6e0163562917165.zip
git2d: Only show last three commits in index pagev0.1.14
Diffstat (limited to '')
-rw-r--r--git2d/main.c2
1 files changed, 1 insertions, 1 deletions
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;