mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
Log restoreCheckpoint duration
This commit is contained in:
parent
d9ac8efb1f
commit
94cb09f6cd
1 changed files with 3 additions and 0 deletions
|
|
@ -354,9 +354,12 @@ export class CheckpointService {
|
|||
}
|
||||
|
||||
public async restoreCheckpoint(commitHash: string) {
|
||||
const startTime = Date.now()
|
||||
await this.ensureBranch(this.mainBranch)
|
||||
await this.git.clean([CleanOptions.FORCE, CleanOptions.RECURSIVE])
|
||||
await this.git.raw(["restore", "--source", commitHash, "--worktree", "--", "."])
|
||||
const duration = Date.now() - startTime
|
||||
this.log(`[restoreCheckpoint] restored checkpoint ${commitHash} in ${duration}ms`)
|
||||
this.currentCheckpoint = commitHash
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue