Skip to content

Commit

Permalink
fixes paularmstrong#706 Include deletions in modified files mask
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeleveroni committed May 7, 2024
1 parent 0c9a5d5 commit 0e74cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/git/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export async function getModifiedFiles(modified: ModifiedStaged | ModifiedFromTh
const isMain = base === currentSha;
const isCleanState = await isClean({ step });

const uncleanArgs = ['diff', '--name-only', '-z', '--diff-filter', 'ACMR'];
const uncleanArgs = ['diff', '--name-only', '-z', '--diff-filter', 'ACMRD'];
uncleanArgs.push(!staged ? base : '--cached');
const cleanMainArgs = [
'diff-tree',
Expand All @@ -194,7 +194,7 @@ export async function getModifiedFiles(modified: ModifiedStaged | ModifiedFromTh
'--name-only',
'--no-commit-id',
'--diff-filter',
'ACMR',
'ACMRD',
isMain ? `${currentSha}^` : base,
isMain ? currentSha : 'HEAD',
];
Expand Down

0 comments on commit 0e74cd9

Please sign in to comment.