From 4e0f739c29dae4e262ebca5865d1980c12ac6d0e Mon Sep 17 00:00:00 2001 From: Adrian Duke Date: Wed, 8 Apr 2026 18:28:06 +0100 Subject: [PATCH] just: Add post-checkout hook --- justfile | 2 ++ scripts/git-hook-template.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/justfile b/justfile index 5849ca02..d5444a84 100644 --- a/justfile +++ b/justfile @@ -11,7 +11,9 @@ CHECK := "🔄 " + BOLD default: check-hooks @just --list +# Run post-checkout checks [group('hooks')] +post-checkout: # Run pre-commit checks [group('hooks')] diff --git a/scripts/git-hook-template.sh b/scripts/git-hook-template.sh index 37586d32..07cb234c 100644 --- a/scripts/git-hook-template.sh +++ b/scripts/git-hook-template.sh @@ -47,6 +47,8 @@ if [ "$HOOK_NAME" = "pre-commit" ]; then elif [ "$HOOK_NAME" = "pre-push" ]; then echo "Running pre-push checks..." just pre-push +elif [ "$HOOK_NAME" = "post-checkout" ]; then + just post-checkout else echo "Unknown hook: $HOOK_NAME" exit 1