From 62e1bdf491d7fd7628b5f65a36186f27d467de60 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 13 Dec 2023 14:40:25 -0800 Subject: [PATCH] Add post-receive script to list modified files --- build/git-post-receive-hook | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 build/git-post-receive-hook diff --git a/build/git-post-receive-hook b/build/git-post-receive-hook new file mode 100755 index 0000000..a21ab00 --- /dev/null +++ b/build/git-post-receive-hook @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +while read precommit postcommit refname +do + echo "precommit: ${precommit}; postcommit: ${postcommit}; refname: ${refname}" + if [[ "${precommit}" != "0000000000000000000000000000000000000000" ]]; then + git diff --name-status $precommit $postcommit + fi +done