diff --git a/tools/README.txt b/tools/README.txt index 6e6a5df24fd..dc43240216e 100644 --- a/tools/README.txt +++ b/tools/README.txt @@ -44,6 +44,8 @@ checkpatch.sh -f - read standard input mainly used by git pre-commit hook as below: git diff --cached | ./tools/checkpatch.sh - + Where a is any syntax supported by git for specifying git revision, see GITREVISIONS(7) + Where a is a space separated list of patch file names or wildcard. or *.patch configure.sh configure.bat diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh index 48b9f29f94b..3fbc5598603 100755 --- a/tools/checkpatch.sh +++ b/tools/checkpatch.sh @@ -36,7 +36,6 @@ usage() { 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() {