mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -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
|
done
|
||||||
|
|
||||||
# Try to keep commits to MPS apart from commits to Emacs
|
# 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/')
|
nmpsfiles=$(printf "%s" "$stats"|grep --count ' mps/')
|
||||||
nnonmpsfiles=$(printf "%s" "$stats"|grep --count --invert-match ' mps/')
|
nnonmpsfiles=$(printf "%s" "$stats"|grep --count --invert-match ' mps/')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue