fix: git diff to respect excluded files (#181)

This commit is contained in:
chaiyut
2023-03-30 16:58:59 +07:00
committed by GitHub
parent fca88df0ab
commit ad2533eb2f

View File

@@ -44,6 +44,11 @@ export const getStagedDiff = async (excludeFiles?: string[]) => {
[
...diffCached,
...filesToExclude,
...(
excludeFiles
? excludeFiles.map(excludeFromDiff)
: []
),
],
);