From 0db4529d8baadcc6b29cde61c8aac8214e527c99 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 10 Mar 2020 10:49:40 -0700 Subject: [PATCH] Add some helpful documentation in checkpatch.sh. --- tools/checkpatch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index b6731f5dd06..48b9f29f94b 100755 --- a/tools/checkpatch.sh +++ b/tools/checkpatch.sh @@ -29,11 +29,14 @@ usage() { echo "-h" echo "-c spell check with codespell(install with: pip install codespell)" echo "-r range check only (coupled with -p or -g)" - echo "-p (default)" + echo "-p (default)" echo "-g " echo "-f " echo "- read standard input mainly used by git pre-commit hook as below:" echo " git diff --cached | ./tools/checkpatch.sh -" + echo "Where a is any syntax supported by git for specifying git revision, see GITREVISIONS(7)" + echo "Where a is a space separated list of patch file names or wildcard. or *.patch" + } check_file() {