diff mbox

[maintainer-tools,v2,04/33] dim: rename dim_shell_checkpatch to shell_checkpatch

Message ID e450affb5a24151463250d48affa604774caec2d.1453985388.git.jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jani Nikula Jan. 28, 2016, 1:26 p.m. UTC
Drop the dim_ prefix as there's no corresponding subcommand.

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

Patch

diff --git a/dim b/dim
index e2d4869fdab0..d26abceb21a6 100755
--- a/dim
+++ b/dim
@@ -386,7 +386,7 @@  function dim_apply_branch
 
 	local message_id=$(message_get_id $file)
 
-	dim_shell_checkpatch "cat $file"
+	shell_checkpatch "cat $file"
 
 	local commiter_email=$(git config --get user.email)
 	local patch_from=$(grep "From:" "$file" | head -1)
@@ -466,7 +466,7 @@  function check_repo_clean
 }
 
 # $1 is the shell command to display the patch/commit
-function dim_shell_checkpatch
+function shell_checkpatch
 {
 	local cmd=$1
 
@@ -483,7 +483,7 @@  function dim_checkpatch
 	local commit=$1
 
 	git --no-pager log --oneline -1 $commit
-	dim_shell_checkpatch "git show $commit --pretty=email"
+	shell_checkpatch "git show $commit --pretty=email"
 }
 
 function dim_checkrange