From 5134038ac58153324581bfff8d9376ecae1d6f15 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sat, 17 Feb 2024 14:16:57 +0000 Subject: [PATCH] Add a placeholder git pre-commit script for executing versioning rules --- scripts/git_pre_commit_hook.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/git_pre_commit_hook.sh diff --git a/scripts/git_pre_commit_hook.sh b/scripts/git_pre_commit_hook.sh new file mode 100644 index 0000000..45ac2e2 --- /dev/null +++ b/scripts/git_pre_commit_hook.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +CHANGE_DIR="./ino/contact_printer" +if git diff --cached --name-only | grep --quiet "${CHANGE_DIR}" +then + echo "none" + exit 0 +fi \ No newline at end of file