chore(script/prepare-commit-msg): filter out .expected.out files
This commit is contained in:
parent
242d63af25
commit
3127553e72
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ set -eo pipefail
|
|||
[[ -z "$2" ]] || exit 0
|
||||
|
||||
# remove last line "$n files changed [...]"
|
||||
diff=$(git diff --staged --stat | head -n -1)
|
||||
diff=$(git diff --staged --stat | grep -v '.*.expected.out' | head -n -1)
|
||||
# take file with most changes
|
||||
file=$(echo "$diff" | sort -n -k 3 | tail -n 1)
|
||||
# extract filename
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue