Skip to content

Commit

Permalink
fix: git diff to respect excluded files (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
yut304 committed Mar 30, 2023
1 parent fca88df commit ad2533e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export const getStagedDiff = async (excludeFiles?: string[]) => {
[
...diffCached,
...filesToExclude,
...(
excludeFiles
? excludeFiles.map(excludeFromDiff)
: []
),
],
);

Expand Down

0 comments on commit ad2533e

Please sign in to comment.