diff options
author | Christian Cleberg <hello@cleberg.net> | 2025-01-24 20:01:31 -0600 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2025-01-24 20:01:31 -0600 |
commit | bb869fd707b26ae1e8abd551c00d9a31d2189309 (patch) | |
tree | b9164f09c21ecfbabb76e6a8dcac5f3218aa2719 /utils | |
parent | 6939544bd4c619eb815e50be85d72895a8f75044 (diff) | |
download | cleberg.net-bb869fd707b26ae1e8abd551c00d9a31d2189309.tar.gz cleberg.net-bb869fd707b26ae1e8abd551c00d9a31d2189309.tar.bz2 cleberg.net-bb869fd707b26ae1e8abd551c00d9a31d2189309.zip |
add git hooks
Diffstat (limited to 'utils')
-rw-r--r-- | utils/hooks/post-checkout | 3 | ||||
-rw-r--r-- | utils/hooks/post-commit | 4 |
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 |