mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-04-15 03:57:13 +00:00
hooks/pre-commit: only check changed files
Speeds up commiting a single file from ~2.6s to ~1.2s on my machine.
This commit is contained in:
parent
a299492f4a
commit
61fa7a2ed7
1 changed files with 2 additions and 1 deletions
|
|
@ -7,4 +7,5 @@ set -o pipefail
|
|||
# Redirect output to stderr.
|
||||
exec 1>&2
|
||||
|
||||
fdroid lint -f
|
||||
|
||||
fdroid lint -f $(git diff --cached --name-only --diff-filter=ACM | sed -n 's@metadata/\(.*\).txt@\1@p')
|
||||
|
|
|
|||
Loading…
Reference in a new issue