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:
parent
af04dc0777
commit
a6292a95cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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/')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue