From 5c89c49f0831f5d2e1ba0f6a08b0c573bf2463cf Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 25 May 2023 14:10:43 +0200 Subject: [PATCH] Add debug message for branch name which is checked out --- .githooks/post-checkout | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index eee1e80..f404caa 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -2,3 +2,5 @@ echo "POST-CHECKOUT" echo "PREV-HEAD=$1" echo "CURR-HEAD=$2" echo "BRANCH-CHECKOUT=$3" + +git log --graph --all --decorate $2 | head -n 1