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

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


Rename as there's no corresponding subcommand (the check-patch
subcommand does a slightly different thing).

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 b42362a1e56b..6a8521c8c7b9 100755
--- a/dim
+++ b/dim
@@ -468,7 +468,7 @@ function shell_checkpatch
 }
 
 # $1 is the git sha1 to check
-function dim_checkpatch
+function checkpatch_commit
 {
 	local commit=$1
 
@@ -489,7 +489,7 @@ function dim_checkrange
 	fi
 
 	for commit in $(git rev-list --reverse $range); do
-		dim_checkpatch $commit || true
+		checkpatch_commit $commit || true
 	done
 }
 
@@ -810,7 +810,7 @@ case "$subcommand" in
 		;;
 	apply-resolved|ar)
 		make -j 20 && git add -u && git am --resolved
-		dim_checkpatch HEAD
+		checkpatch_commit HEAD
 		git commit --amend &
 		;;
 	apply-igt|ai)
-- 
2.1.4



More information about the Intel-gfx mailing list