From 2423c9bc158511dfb3867e80bc0ce3194ffbbe7d Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 2 Dec 2013 15:24:27 -0500 Subject: [PATCH] Speed up ./tools/pre-commit by checking only staged files. (imported from commit 2669635c94c41890bfe712f609b640b013a61782) --- tools/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pre-commit b/tools/pre-commit index ec5be005da..1a66a09dc2 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -1 +1 @@ -./tools/lint-all || true +./tools/lint-all $(git diff --cached --name-only --diff-filter=ACM) || true