initial implementation of commit hook