From 3eb16d93bf95b2a7d40fb1607622cab1e2f4b81e Mon Sep 17 00:00:00 2001 From: Parabola git Date: Fri, 8 Jul 2016 00:55:19 +0000 Subject: redo hooks infrastructure (yay git 2.9 core.hooksPath) --- .config/git/hooks/run-parts.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .config/git/hooks/run-parts.sh (limited to '.config/git/hooks/run-parts.sh') diff --git a/.config/git/hooks/run-parts.sh b/.config/git/hooks/run-parts.sh new file mode 100755 index 0000000..c42173a --- /dev/null +++ b/.config/git/hooks/run-parts.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +if [[ -d "$0.d" ]]; then + run-parts "${@/#/--arg=}" -- "$0.d" +fi +file="$GIT_DIR/hooks/${0##*/}" +if [[ -x "$file" && -f "$file" ]]; then + "$file" +fi -- cgit v1.2.3