mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-16 21:53:07 +00:00
Update apps/server/src/routes/worktree/routes/discard-changes.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -128,7 +128,7 @@ export function createDiscardChangesHandler() {
|
||||
stagedFiles.push(file.path);
|
||||
}
|
||||
// Check for working tree changes (worktree status Y): handles MM, AM, MD, etc.
|
||||
if (workTreeStatus === 'M' || workTreeStatus === 'D' || workTreeStatus === 'A') {
|
||||
if (workTreeStatus !== ' ' && workTreeStatus !== '?') {
|
||||
trackedModified.push(file.path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user