mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:20:43 +00:00
fix: include deleted files in changed lanes
This commit is contained in:
@@ -236,8 +236,8 @@ export function listChangedPathsFromGit(params) {
|
||||
return [
|
||||
...new Set([
|
||||
...rangePaths,
|
||||
...runGitNameOnlyDiff(["--cached", "--diff-filter=ACMR"], cwd),
|
||||
...runGitNameOnlyDiff(["--diff-filter=ACMR"], cwd),
|
||||
...runGitNameOnlyDiff(["--cached", "--diff-filter=ACMRD"], cwd),
|
||||
...runGitNameOnlyDiff(["--diff-filter=ACMRD"], cwd),
|
||||
...runGitLsFiles(["--others", "--exclude-standard"], cwd),
|
||||
]),
|
||||
].toSorted((left, right) => left.localeCompare(right));
|
||||
@@ -264,7 +264,7 @@ function runGitLsFiles(extraArgs, cwd = process.cwd()) {
|
||||
}
|
||||
|
||||
export function listStagedChangedPaths() {
|
||||
const output = execFileSync("git", ["diff", "--cached", "--name-only", "--diff-filter=ACMR"], {
|
||||
const output = execFileSync("git", ["diff", "--cached", "--name-only", "--diff-filter=ACMRD"], {
|
||||
stdio: ["ignore", "pipe", "pipe"],
|
||||
encoding: "utf8",
|
||||
maxBuffer: GIT_OUTPUT_MAX_BUFFER,
|
||||
|
||||
Reference in New Issue
Block a user