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"
|
GIT_DIFF_TOOL="git diff-index --cached"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Allow manually specifiying the files.
|
# Allow manually specifying the files.
|
||||||
FILES="$@"
|
FILES="$@"
|
||||||
|
|
||||||
# Otherwise, get a list of all files changed between our RANGE_BASE and the current HEAD
|
# 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
|
fi
|
||||||
|
|
||||||
if [[ -z $PATCH_MODE ]]; then
|
if [[ -z $PATCH_MODE ]]; then
|
||||||
echo -e "Checking files:"
|
echo -e "Checking staged files to be committed:"
|
||||||
for file in $FILES; do
|
for file in $FILES; do
|
||||||
echo -e "\t$file"
|
echo -e "\t$file"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue