Skip to content

Instantly share code, notes, and snippets.

@pshchelo
pshchelo / post-merge
Last active April 17, 2021 23:54 — forked from sindresorhus/post-merge
Git hook to auto-update pytnon venv after `git pull` if some certain files were changed
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# Forked by Pavlo Shchelokovskyy (pshchelo) - pshchelo.bitbucket.org
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {