diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100644 index 000000000..ef67eaa37 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,6 @@ +#!/bin/sh + +added_files=$(git diff --name-only --cached --diff-filter=d) + +make format +git add ${added_files} \ No newline at end of file