aboutsummaryrefslogtreecommitdiff
path: root/utils/hooks
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2025-01-24 20:01:31 -0600
committerChristian Cleberg <[email protected]>2025-01-24 20:01:31 -0600
commit1501ff148ce066669d8dc6ecc0dfb93ecdc9306e (patch)
treeb9164f09c21ecfbabb76e6a8dcac5f3218aa2719 /utils/hooks
parent2913de9f78e80f431fdb9119279586127d89f7eb (diff)
downloadcleberg.net-1501ff148ce066669d8dc6ecc0dfb93ecdc9306e.tar.gz
cleberg.net-1501ff148ce066669d8dc6ecc0dfb93ecdc9306e.tar.bz2
cleberg.net-1501ff148ce066669d8dc6ecc0dfb93ecdc9306e.zip
add git hooks
Diffstat (limited to 'utils/hooks')
-rw-r--r--utils/hooks/post-checkout3
-rw-r--r--utils/hooks/post-commit4
2 files changed, 7 insertions, 0 deletions
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