Skip to content

/undo will do a git checkout which modify ALL files mtime #25400

@jasonwch

Description

@jasonwch

Description

This is a serious bug (found out from log), when I use /undo command, it will perform the following action:

git --git-dir= --work-tree=/MY_GIT_WORKING_FOLDER checkout -- .

This make ALL tracked files inside "/MY_GIT_WORKING_FOLDER" update its modified time. Now I cannot restore the original file modified timestamp. I can only do git restore-mtime to restore to initial commit timestamp.

Please fix this seriously

Plugins

Nip

OpenCode version

1.14.31

Steps to reproduce

using /undo at web interface (should be the same as TUI)

Screenshot and/or share link

NIL

Operating System

Ubuntu 24.04

Terminal

Web

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions