From bb869fd707b26ae1e8abd551c00d9a31d2189309 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Fri, 24 Jan 2025 20:01:31 -0600 Subject: add git hooks --- utils/hooks/post-checkout | 3 +++ utils/hooks/post-commit | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 utils/hooks/post-checkout create mode 100644 utils/hooks/post-commit (limited to 'utils') diff --git a/utils/hooks/post-checkout b/utils/hooks/post-checkout new file mode 100644 index 0000000..811a483 --- /dev/null +++ b/utils/hooks/post-checkout @@ -0,0 +1,3 @@ +# .git/hooks/post-checkout +#!/bin/bash +echo "You're now on branch $(git rev-parse --abbrev-ref HEAD)" diff --git a/utils/hooks/post-commit b/utils/hooks/post-commit new file mode 100644 index 0000000..d950da6 --- /dev/null +++ b/utils/hooks/post-commit @@ -0,0 +1,4 @@ +# .git/hooks/post-commit +#!/bin/bash +echo "Commit added:" +git show --stat -- cgit v1.2.3-70-g09d2