From 6700d5a58c8e402b71632d1539d3cdec9f12986a Mon Sep 17 00:00:00 2001 From: P-A Loizeau <p.-a.loizeau@gsi.de> Date: Thu, 3 Dec 2020 13:02:44 +0100 Subject: [PATCH] In clang format apply script, print git commands instead of executing add/commit --- scripts/apply-format-changes.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/apply-format-changes.sh b/scripts/apply-format-changes.sh index 76de85a7f2..80e88469df 100755 --- a/scripts/apply-format-changes.sh +++ b/scripts/apply-format-changes.sh @@ -21,7 +21,6 @@ CHANGED_FILES=$(git diff --name-only $BASE_COMMIT | grep -E '.*\.(h|hpp|c|C|cpp| $GIT_CLANG_FORMAT_BIN --verbose --commit $BASE_COMMIT $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl -git add $CHANGED_FILES -echo "" git status -git commit -m"Apply clang-format" +echo "Next step: git add "$CHANGED_FILES +echo 'Then : git commit -m"Apply clang-format"' -- GitLab