From 2c4fb54afdcda83ca2a3ae0c18e8b0b0c27d14af Mon Sep 17 00:00:00 2001 From: Karl F Date: Sun, 3 Jan 2021 19:28:27 +0100 Subject: [PATCH] Be explicit about clang-format.sh operating on staged files --- scripts/clang-format.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/clang-format.sh b/scripts/clang-format.sh index 154ca2223..0c11e496b 100755 --- a/scripts/clang-format.sh +++ b/scripts/clang-format.sh @@ -31,7 +31,7 @@ else GIT_DIFF_TOOL="git diff-index --cached" fi -# Allow manually specifiying the files. +# Allow manually specifying the files. FILES="$@" # Otherwise, get a list of all files changed between our RANGE_BASE and the current HEAD @@ -40,7 +40,7 @@ if [[ -z $FILES ]]; then fi if [[ -z $PATCH_MODE ]]; then - echo -e "Checking files:" + echo -e "Checking staged files to be committed:" for file in $FILES; do echo -e "\t$file" done