Add some helpful documentation in checkpatch.sh.

This commit is contained in:
David Sidrane 2020-03-10 10:49:40 -07:00 committed by Xiang Xiao
parent d43cb2fa80
commit 0db4529d8b
1 changed files with 4 additions and 1 deletions

View File

@ -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 <patch list> (default)"
echo "-p <patch file names> (default)"
echo "-g <commit list>"
echo "-f <file list>"
echo "- read standard input mainly used by git pre-commit hook as below:"
echo " git diff --cached | ./tools/checkpatch.sh -"
echo "Where a <commit list> is any syntax supported by git for specifying git revision, see GITREVISIONS(7)"
echo "Where a <patch file names> is a space separated list of patch file names or wildcard. or *.patch"
}
check_file() {