[PATCH 0/2] Handle unstaged changes in the pre-commit hook