[Intel-gfx] [maintainer-tools RFC PATCH 06/17] dim: rename dim_checkrange to dim_checkpatch

Jani Nikula jani.nikula at intel.com
Tue Jan 26 06:32:19 PST 2016


Rename to match the subcommand. Also add checkpatch subcommand (without
the hyphen) to match the spelling of the tool.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 dim | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dim b/dim
index 6a8521c8c7b9..012353112a3b 100755
--- a/dim
+++ b/dim
@@ -476,7 +476,7 @@ function checkpatch_commit
 	shell_checkpatch "git show $commit --pretty=email"
 }
 
-function dim_checkrange
+function dim_checkpatch
 {
 	local range
 
@@ -846,8 +846,8 @@ case "$subcommand" in
 		git log -1 $sha1 "--pretty=format:Fixes: %H (\"%s\")%n" | \
 			sed -e 's/\([0-f]\{12\}\)[0-f]*/\1/'
 		;;
-	check-patch|cp)
-		dim_checkrange $@
+	checkpatch|check-patch|cp)
+		dim_checkpatch $@
 		;;
 	cherry-pick)
 		if [[ "x$1" = "x" ]]; then
-- 
2.1.4



More information about the Intel-gfx mailing list