mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 14:07:20 +08:00
fix(cli): restore moved files during snapshot revert
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@kilocode/cli": patch
|
||||
---
|
||||
|
||||
Restore files to their original paths when reverting a task that moved or renamed them.
|
||||
@@ -420,7 +420,12 @@ export const layer: Layer.Layer<Service, never, Requirements> =
|
||||
Effect.gen(function* () {
|
||||
yield* add()
|
||||
const result = yield* git(
|
||||
[...quote, ...args(["diff", "--cached", "--no-ext-diff", "--name-only", hash, "--", "."])],
|
||||
// kilocode_change start
|
||||
[
|
||||
...quote,
|
||||
...args(["diff", "--cached", "--no-ext-diff", "--no-renames", "--name-only", hash, "--", "."]),
|
||||
],
|
||||
// kilocode_change end
|
||||
{
|
||||
cwd: state.directory,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user