Add post-receive script to list modified files

This commit is contained in:
Tom Willemse 2023-12-13 14:40:25 -08:00
parent 05d545927a
commit 62e1bdf491

9
build/git-post-receive-hook Executable file
View file

@ -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