Add .gitattributes file
.svg files were not treated as binary which means they were spamming up the diff log. Bash files were not being pulled with LF line endings, which means they couldn't be run by Windows Subsystem for Linux. Bash files were renamed .sh to easily allow them to be recognized by both .gitattributes and humans. Taken from https://github.com/alexkaratarakis/gitattributes.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
clang-format --version;
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Clang-format found."
|
||||
build_path="`dirname \"$0\"`"
|
||||
project_path=$build_path/../..
|
||||
|
||||
python $project_path/build_scripts/run-clang-format.py $project_path/src -r --color always;
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "FORMATTED CORRECTLY."
|
||||
else
|
||||
echo "NOT FORMATTED CORRECTLY."
|
||||
fi
|
||||
else
|
||||
echo "Could not find clang-format."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user