From d5cd5bfbd765f1ac1eb529733f4c594a552ed64b Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 31 May 2023 16:45:14 -0300 Subject: [PATCH] Adding githooks fold --- .githooks/pre-commit | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .githooks/pre-commit 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