Skip to content

Instantly share code, notes, and snippets.

@Manuel-Dellisse
Manuel-Dellisse / post-merge
Last active August 29, 2015 14:20 — forked from sindresorhus/post-merge
Git hook
#!/bin/sh
# Shell script gaat een Python script uitvoeren
# om PHP script update.php uit te voeren in de browser.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}