From 94bc02caa24bb6a4a88382f61453a9a687ca4ccc Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Fri, 7 Jul 2023 22:13:55 +0800 Subject: [PATCH] feat: add cyan Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- scripts/githooks/pre-push | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/githooks/pre-push b/scripts/githooks/pre-push index 97d426487..9087e0cb9 100644 --- a/scripts/githooks/pre-push +++ b/scripts/githooks/pre-push @@ -87,23 +87,15 @@ print_color "Author: ${author}" "${PURPLE_PREFIX}" # Print section separator print_separator -# 获取变更的文件列表 file_list=$(git diff --name-status HEAD @{u}) added_files=$(grep -c '^A' <<< "$file_list") modified_files=$(grep -c '^M' <<< "$file_list") deleted_files=$(grep -c '^D' <<< "$file_list") -# 打印变更的文件统计 print_color "Added Files: ${added_files}" "${YELLOW_PREFIX}" print_color "Modified Files: ${modified_files}" "${YELLOW_PREFIX}" print_color "Deleted Files: ${deleted_files}" "${YELLOW_PREFIX}" -# 获取最近一次提交的摘要信息 -commit_message=$(git log -1 --pretty=format:"%s") - -# 打印提交的摘要信息 -print_color "Commit Message: ${commit_message}" "${YELLOW_PREFIX}" - # #printMessage "Running the Flutter analyzer" #flutter analyze