We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e66a62b commit 5433b2dCopy full SHA for 5433b2d
crates/jz-module/src/repo/file/commit.rs
@@ -24,7 +24,9 @@ impl AppModule {
24
let mut commits = git.list_commit(branch)?;
25
if offset.is_some() && limit.is_some() {
26
commits.drain(0..offset.unwrap() as usize * limit.unwrap() as usize);
27
- commits.truncate(limit.unwrap_or(100) as usize);
+ commits.truncate(limit.unwrap_or(20) as usize);
28
+ }else {
29
+ commits.truncate(20);
30
}
31
Ok(commits)
32
0 commit comments