diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-03 18:17:13 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-03 18:17:13 +0800 |
commit | 6c7099c4125e6998bd1a2171a6e0163562917165 (patch) | |
tree | b8b8e41ca6a209716981c0efa5945148228c55ef /git2d/main.c | |
parent | HTML: Don't use <table> for the repo index page's commit list (diff) | |
download | forge-0.1.14.tar.gz forge-0.1.14.tar.zst forge-0.1.14.zip |
git2d: Only show last three commits in index pagev0.1.14
Diffstat (limited to 'git2d/main.c')
-rw-r--r-- | git2d/main.c | 2 |
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; |