summaryrefslogtreecommitdiff
path: root/find-nonstandard-hooks
diff options
context:
space:
mode:
authorGravatar steering72532026-05-18 01:25:46 -0600
committerGravatar steering72532026-05-18 01:25:46 -0600
commitdc54a69b7552d8d44adf25b8009992c4a2b395be (patch)
tree0c1864e9239bf02fc83408be378d983070250ead /find-nonstandard-hooks
init
Diffstat (limited to 'find-nonstandard-hooks')
-rwxr-xr-xfind-nonstandard-hooks5
1 files changed, 5 insertions, 0 deletions
diff --git a/find-nonstandard-hooks b/find-nonstandard-hooks
new file mode 100755
index 0000000..074f8b6
--- /dev/null
+++ b/find-nonstandard-hooks
@@ -0,0 +1,5 @@
+#!/bin/bash
+# Find all your repos that have nonstandard hooks
+# Probably mostly of use to staff
+
+find "$HOME" -type d -name '*.git' -execdir git -C {} config --local --get core.hookspath "!$HOME/hooks/.*" \; -print