add two snippets that can be used in git pre-commit