Add post-merge hook, related documentation, and tests.