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() {