Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions scripts/internal/check_macros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ fi

file_path=$1

echo "$file_path"

if [[ "$file_path" -ef "src/t8_misc/t8_with_macro_error.h" ]]
then
echo The file \"src/t8_misc/t8_with_macro_error.h\" will be ignored by the check_macros.sh script.
Expand Down
3 changes: 2 additions & 1 deletion scripts/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ exec 1>&2

nocontinue=0

echo "Pre-commit script is checking added files, this may take a moment."

for file in `git diff --cached --name-only`
do
# only indent existing files, this is necessary since if we rename or delete
Expand All @@ -90,7 +92,6 @@ do
FILE_ENDING="${file##*.}"
if [ $FILE_ENDING = "c" -o $FILE_ENDING = "h" -o $FILE_ENDING = "cxx" -o $FILE_ENDING = "hxx" ]
then
echo "Checking file $file"
$CHECK_INDENT $file > /dev/null 2>&1
status=$?
if test $status -ne 0
Expand Down