1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* build-aux/git-hooks/pre-commit (stats): Use staged changes

This commit is contained in:
Helmut Eller 2025-09-26 17:52:43 +02:00
parent af04dc0777
commit a6292a95cd

View file

@ -73,7 +73,7 @@ while IFS= read -r new_name; do
done
# Try to keep commits to MPS apart from commits to Emacs
stats=$(git diff --numstat "$head")
stats=$(git diff --cached --numstat "$head")
nmpsfiles=$(printf "%s" "$stats"|grep --count ' mps/')
nnonmpsfiles=$(printf "%s" "$stats"|grep --count --invert-match ' mps/')