Skip to content

Instantly share code, notes, and snippets.

@kamimoo
kamimoo / post-merge
Last active August 29, 2015 14:23 — forked from sindresorhus/post-merge
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
if [ -x "`which -s npm`" ]; then
echo "node is not installed"
exit 1
fi
cd "$(dirname ${BASH_SOURCE[0]})/../.."
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"