Compare commits

...

4 commits

2 changed files with 9 additions and 0 deletions

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