mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-19 22:53:08 +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);
|
stagedFiles.push(file.path);
|
||||||
}
|
}
|
||||||
// Check for working tree changes (worktree status Y): handles MM, AM, MD, etc.
|
// 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);
|
trackedModified.push(file.path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user