diff options
Diffstat (limited to 'scripts/checkpatch.sh')
-rwxr-xr-x | scripts/checkpatch.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/checkpatch.sh b/scripts/checkpatch.sh index 94d8c4f..3d8f1a6 100755 --- a/scripts/checkpatch.sh +++ b/scripts/checkpatch.sh @@ -10,7 +10,7 @@ hash $CHECKPATCH 2>/dev/null || usage() { SCR=$(basename "$0") echo "Usage: $SCR [--working] Check working area" - echo " $SCR <commit> Check specific commit" + echo " $SCR <commit>... Check specific commit(s)" echo " $SCR --diff <commit1> <commit2> Check diff commit1...commit2" echo " $SCR --cached Check staging area" echo " $SCR --help This help" @@ -35,8 +35,8 @@ case "$op" in usage ;; *) - echo "Checking commit: " - checkpatch "$1" + echo "Checking commit(s):" + for c in $*; do checkpatch $c; done ;; esac |