diff --git a/apps/rush-lib/src/logic/Git.ts b/apps/rush-lib/src/logic/Git.ts index d49f936d31b..12799f09a72 100644 --- a/apps/rush-lib/src/logic/Git.ts +++ b/apps/rush-lib/src/logic/Git.ts @@ -267,8 +267,7 @@ export class Git { 'diff', `${targetBranch}...`, '--name-only', - '--no-renames', - '--diff-filter=A' + '--no-renames' ]); return output .split('\n') diff --git a/common/changes/@microsoft/rush/fix-getChangedFiles_2022-01-27-10-49.json b/common/changes/@microsoft/rush/fix-getChangedFiles_2022-01-27-10-49.json new file mode 100644 index 00000000000..6593679de02 --- /dev/null +++ b/common/changes/@microsoft/rush/fix-getChangedFiles_2022-01-27-10-49.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@microsoft/rush", + "comment": "rush-lib getChangedFiles should not only show added files", + "type": "none" + } + ], + "packageName": "@microsoft/rush" +} \ No newline at end of file