Add post-receive script to list modified files
This commit is contained in:
parent
cbcbd4583c
commit
ef483441e7
1 changed files with 9 additions and 0 deletions
9
build/git-post-receive-hook
Executable file
9
build/git-post-receive-hook
Executable 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
|
Loading…
Reference in a new issue