Be explicit about clang-format.sh operating on staged files
parent
0ff82d38eb
commit
2c4fb54afd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue