Skip to content

Commit 42ae2d8

Browse files
committed
feat(oplog): increase snapshot list limit from 100 to 1000 for undo
1 parent d577ad9 commit 42ae2d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/but/src/oplog/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub(crate) fn restore_to_oplog(
122122
oplog_sha: &str,
123123
) -> anyhow::Result<()> {
124124
let project = Project::find_by_path(repo_path)?;
125-
let snapshots = but_api::undo::list_snapshots(project.id, 100, None, None)?;
125+
let snapshots = but_api::undo::list_snapshots(project.id, 1000, None, None)?;
126126

127127
// Parse the oplog SHA (support partial SHAs)
128128
let commit_sha_string = if oplog_sha.len() >= 7 {

0 commit comments

Comments
 (0)