Skip to content

Commit

Permalink
Include modified files in --diff-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Nov 24, 2023
1 parent 19afea6 commit 22774bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
staged_files=($(git diff --staged --name-only --diff-filter=ACDRT -- auth0_flutter/darwin))
staged_files=($(git diff --staged --name-only --diff-filter=ACDMRT -- auth0_flutter/darwin))

# Only proceed if there are staged files from the 'darwin' directory
if [ ${#staged_files[@]} -eq 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-symlinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
scripts/generate-symlinks.sh
if git diff HEAD --quiet --diff-filter=ACDRT; then
if git diff HEAD --quiet --diff-filter=ACDMRT; then
echo $'\nNo changes detected in the iOS/macOS files that require updating the symlinks.'
echo 'All good.'
else
Expand Down

0 comments on commit 22774bd

Please sign in to comment.